Object ng.browser vs. 1.1.0 Full+Lite

The browser object contain general information about the browser type and version.

Properties

Boolean ng.browser.ie Required vs. 1.1.0 Full+Lite
True if the browser is Internet Explorer.
Boolean ng.browser.ie6 Required vs. 1.1.0 Full+Lite
True if the browser is Internet Explorer version 6.
Boolean ng.browser.opera Required vs. 1.1.0 Full+Lite
True if the browser is Opera.
Boolean ng.browser.webkit Required vs. 1.1.0 Full+Lite
True if the browser is a Webkit browser (Safari or Chrome).
Boolean ng.browser.chrome Required vs. 1.1.0 Full+Lite
True if the browser is Google Chrome
Boolean ng.browser.gecko Required vs. 1.1.0 Full+Lite
True if the browser is a Gecko browser (Firefox and Netscape).
Boolean ng.browser.mobile_safari Required vs. 1.1.0 Full+Lite
True if the browser is Mobile Safari (iPod and iPhone).
Boolean ng.browser.loaded Required vs. 1.1.0 Full+Lite
True if the page has loaded.
Function ng.browser.get_ie_version () vs. 1.1.0 Full+Lite
This function will return the version number for an IE browser or -1 for other browsers.
Function ng.browser.support_input (type) vs. 1.1.2 Full+Lite
Checks if the browser supports an input field type. This function is useful for checking html5 new input types such as "date", "range" or "time".

Examples

Using ng.browser
It's best to use function detection instead of browser sniffing.
Demo: