JavaScript Window Navigator
Navigator Object
The JavaScript Navigator object contains relevant information about the browser.
Tip: Although there is no clear relevant standard for the Navigator object, all browsers support this object.
window.navigator object can be written without using the window prefix.
WARNING!!!
The information from the navigator object is misleading and should not be used to detect browser versions because:
navigator data can be Browser user changes
Some browsers will recognize errors for test sites
The browser cannot report new operating systems released later than the browser
Navigator object Methods
The Navigator object has the following two methods:
navigator.javaEnabled(): detects whether the browser has enabled java support and returns a Boolean value, true indicating support.
navigator.taintEnabled(): Detects whether the browser enables data tainting (data tainting), returns a Boolean value, true means enabled.