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.


Continuing Learning
||
php中文网(php.cn)
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!