Skip to content
garafu edited this page Aug 5, 2013 · 10 revisions

public static property.
This object has follwing properties, and methods.

  • Properties
  • .original
  • .version
  • .opera
  • .operamini
  • .msie
  • .firefox
  • .chrome
  • .browser
  • .safari
  • .silk
  • .mercury
  • .x86
  • .x64
  • .arm
  • .ia64
  • .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.

.operamini

type : boolean
Get the value indicating whether the client browser is "Opera Mini" 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.

.silk

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

.mercury

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

.x86

type : boolean
Get the value indicating whether the browser execution mode is 32bit browser or not.
In case of 32bit browser on 64bit OS, this value is true.

.x64

type : boolean
Get the value indicating whether the browser execution mode is 64bit browser or not.

.arm

type : boolean
Get the value indicating whether the browser execution mode is ARM or not.

.ia64

type : boolean
Get the value indicating whether the browser execution mode is Itanium 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