EMS.Browser

Static functions for accessing information about the browser.

Summary
EMS.BrowserStatic functions for accessing information about the browser.
Static Functions
getName{String} The name of the browser such as:
getVersion{Float} The browser version number as a {Float}.
getPlatform{String} The name of the platform (operating system), such as:
getEngine{String} Returns the name of the browser engine, such as:

Static Functions

getName

getName: function()

Returns

{String} The name of the browser such as:

  • ie
  • firefox
  • safari
  • chrome
  • opera

getVersion

getVersion: function()

Returns

{Float} The browser version number as a {Float}.

getPlatform

getPlatform: function()

Returns

{String} The name of the platform (operating system), such as:

  • mac
  • win
  • linux
  • ios
  • android
  • webos
  • other

getEngine

getEngine: function()

Returns

{String} Returns the name of the browser engine, such as:

  • trident
  • gecko
  • webkit
  • presto
getName: function()
{String} The name of the browser such as:
getVersion: function()
{Float} The browser version number as a {Float}.
getPlatform: function()
{String} The name of the platform (operating system), such as:
getEngine: function()
{String} Returns the name of the browser engine, such as:
Close