JavaScript Reference/Javascript Methods/taintEnabled
"taintEnabled()" Example
<html>
<body>
<script language="JavaScript">
function function1() {
var m = navigator.taintEnabled();
if (m == true) {
alert("YES");
} else {
alert("NO");
}
}
</script>
<input type="button"
value="Is data tainting in my browser enabled?"
onClick="function1();">
</body>
</html>
"taintEnabled()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |clientInformation navigator |
+----------------+--------------------------------------------------------------+
"taintEnabled()" Syntax, Parameters and Note
Note:
Is data tainting enabled.
Disabling data tainting is a browser security method that prevents a script
from accessing functionality on the web server.
Returns true or false.
Syntax:
objectName.taintEnabled()