-
Notifications
You must be signed in to change notification settings - Fork 4
$.browser
public static property.
This object has follwing properties, and methods.
- Properties
- .original
- .version
- .opera
- .msie
- .firefox
- .chrome
- .browser
- .safari
- .unknown
- Methods
- .initialize( string )
- .is( string )
type : string
This property has identified string for browser type.
type : VersionInfo
This property has version information.
Please see $.browser.version for details.
type : boolean
Get the value indicating whether the client browser is "Opera" or not.
type : boolean
Get the value indicating whether the client browser is "Internet Explorer" or not.
type : boolean
Get the value indicating whether the client browser is "Firefox" or not.
type : boolean
Get the value indicating whether the client browser is "Chrome" or not.
type : boolean
Get the value indicating whether the client browser is "Android Default Browser" or not.
type : boolean
Get the value indicating whether the client browser is "Safari" or not.
type : boolean
Get the value indicating whether the client browser can not detect.
Initialize BrowserInfo class instance. This method set properties according to the given string.
Syntax:
private {void} initialize(
{string} useragent
)
Parameter:
-
{string}useragent
userAgent string.
Return:
-
{void}
no return value.
Get the value indicating whether the current browser is equal to the specified browser or not.
Syntax:
public {boolean} is(
{string} type
)
Parameter:
-
{string}type
Browser type string.
Return:
-
{boolean}
Whether the current browser is equal to the specified browser.