JavaScript Reference/Javascript Methods/taintEnabled — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 2010
"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()