W3cubDocs

/DOM

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. Avoid using it and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work 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
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

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/navigatorID/taintEnabled