Navigator taintEnabled()Method

Navigator 对象参考手册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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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>

Output:


Try it Yourself »


Navigator 对象参考手册Navigator Object Other Extensions