BrowserInfo
class BrowserInfo
- web2grid
- web2grid.core
- web2grid.core.info
- web2grid.core.info.BrowserInfo
- web2grid.core.info
- web2grid.core
Class overview
BrowserInfo provides formatted data about the browser the framework is actually running in.
Public functions
browserVendor () : String
Returns the vendor of the browser. Checks for Opera Software, Microsoft, Google and Mozilla.
browserName () : String
Returns the name of the browser. Possible return values are Opera, Internet Explorer, Chrome and Firefox.
browserFullVersion () : String
Returns the full version of the browser.
browserMajorVersion () : Int
Returns the major version of the browser. If the browser version is 10.2 this function will return 10.
osPlatform () : String
Returns the platform name of the operation system. Possible return values are Win, Linux and Mac.
osName () : String
Returns the name of the operation system. Possible return values are Windows 7, Windows Vista, Windows XP, Windows, Linux and Apple.
flashInstalled () : Bool
Returns true if Flash is available for the current browser.
flashFullVersion () : String
Returns the full version of Flash. Returns null if Flash is not present.
flashMajorVersion () : Int
Returns the major version of Flash. Returns null if Flash is not present.
html5xmlHttpRequestLevel2 () : Bool
Returns true if XMLHttpRequest Level 2 capability is available. Required for cross-origin connections.
html5localStorage () : Bool
Returns true if Local Storage capability is available.
html5webWorkers () : Bool
Returns true if Web Workers capability is available.
html5webSockets () : Bool
Returns true if Web Sockets capability is available.