The taintEnabled()
method returns a Boolean value
that specifies whether the browser has data tainting enabled.
taintEnabled |
No | Yes | No | No | Yes |
navigator.taintEnabled()
None
Type | Description |
---|---|
Boolean | Specifies whether the browser has data tainting enabled. |
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: