You are here: Reference > JavaScript > client-side > browser > methods > taintEnabled (clientInformation, navigator)

taintEnabled method (clientInformation, navigator)

Browser support:
Returns a Boolean value that indicates whether the data-tainting security model is enabled.

Syntax:

object.taintEnabled ( );
You can find the related objects in the Supported by objects section below.

Return value:

Boolean. One of the following values:
false Data tainting is enabled.
true 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? yes no

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content