Javascript Reference - Navigator taintEnabled() Method








The taintEnabled() method returns a Boolean value that specifies whether the browser has data tainting enabled.

Browser Support

taintEnabled No Yes No No Yes

Syntax

navigator.taintEnabled()

Parameters

None

Return Value

Type Description
Boolean Specifies whether the browser has data tainting enabled.




Example

The following code shows how to Determine whether your browser has data tainting enabled.


<!DOCTYPE html>
<html>
<body>
<!--   w  w w .  j  av a2 s . com-->
<script>
document.write("Data tainting enabled: " + navigator.taintEnabled());
</script>

</body>
</html>

The code above is rendered as follows: