Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

NavigatorID.taintEnabled()

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

Not available to workers.
Although the interface of this feature is available to workers, this feature isn't.

Deprecated
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.

The NavigatorID.taintEnabled() method always returns false.

Note: Tainting was a security method used by JavaScript 1.2. It has long been removed; this method only stays for maintaining compatibility with very old scripts.

Syntax

result = window.navigator.taintEnabled()

Example

alert(window.navigator.taintEnabled()); 
// returns false

Specifications

Specification Status Comment
WHATWG HTML Living Standard
The definition of 'NavigatorID.taintEnabled' in that specification.
Living Standard Initial definition

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) (Yes) (Yes) (Yes)
on Web Workers ? 28 (28) ? ? ?
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)
on Web Workers ? 28.0 (28) ? ? ? ?

See also

文档标签和贡献者

 此页面的贡献者: teoli, Broetchen1234, chrisdavidmills
 最后编辑者: teoli,