Skip to content
garafu edited this page Apr 30, 2013 · 10 revisions

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 )

.original

type : string This property has identified string for browser type.

.version

type : VersionInfo
This property has version information. Please see $.browser.version for details.

.opera

type : boolean Get the value indicating whether the client browser is "Opera" or not.

.msie

type : boolean
Get the value indicating whether the client browser is "Internet Explorer" or not.

.firefox

type : boolean
Get the value indicating whether the client browser is "Firefox" or not.

.chrome

type : boolean
Get the value indicating whether the client browser is "Chrome" or not.

.browser

type : boolean
Get the value indicating whether the client browser is "Android Default Browser" or not.

.safari

type : boolean
Get the value indicating whether the client browser is "Safari" or not.

.unknown

type : boolean
Get the value indicating whether the client browser can not detect.

.initialize( string )

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.

.is( string )

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.

Clone this wiki locally