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.


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:
    <script type="text/javascript">
        function IsTaintEnabled () {
            alert (navigator.taintEnabled ());
    <button onclick="IsTaintEnabled ();">Is data tainting enabled?</button>
Did you find this example helpful? yes no

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content