You are here: Reference > JavaScript > client-side > browser > methods > taintEnabled (clientInformation, navigator)
taintEnabled method (clientInformation, navigator)
Returns a Boolean value that indicates whether the data-tainting security model is enabled.
Syntax:
You can find the related objects in the Supported by objects section below.
Return value:
Boolean. One of the following values:
Data tainting is enabled. | |
Data tainting is disabled. |
Example HTML code 1:
This example illustrates the use of the taintEnabled method:
|
||||
<head> <script type="text/javascript"> function IsTaintEnabled () { alert (navigator.taintEnabled ()); } </script> </head> <body> <button onclick="IsTaintEnabled ();">Is data tainting enabled?</button> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
External links:
User Contributed Comments