Navigator taintEnabled()Method
Navigator Object
Definition and Usage
The taintEnabled() method returns a Boolean value indicating whether data tainting is enabled in the current browser.
Syntax
navigator.taintEnabled()
Browser Support
![]()
![]()
![]()
![]()
![]()
Currently, only Internet Explorer and Opera browsers support the taintEnabled() method.
Example
Example
Determine whether the browser has data tainting enabled:
<html>
<body>
<script>
document.write("Enable data tainting: " + navigator.taintEnabled());
</script>
</body>
</html>
<body>
<script>
document.write("Enable data tainting: " + navigator.taintEnabled());
</script>
</body>
</html>
Output:
Try it Yourself »
Navigator Object Other Extensions