Navigator taintEnabled() Method
Example
Determine whether your browser has data tainting enabled:
document.write("Data tainting enabled: " + navigator.taintEnabled());
Try it Yourself »
Definition and Usage
The taintEnabled() method was removed in JavaScript version 1.2, and should be avoided to prevent run-time errors in the future.
The taintEnabled() method returns a Boolean value that specifies whether the browser has data tainting enabled.
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Method | |||||
---|---|---|---|---|---|
taintEnabled() | Not supported | Yes | Not supported | Not supported | Yes |
Syntax
navigator.taintEnabled()
Parameters
None |
Technical Details
Return Value: | A Boolean, indicating whether the browser has data tainting enabled. Returns true if data tainting is supported and enabled, otherwise it returns false |
---|
❮ Navigator Object