X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

Navigator taintEnabled() Method

Navigator Object Reference Navigator Object

Example

Determine whether your browser has data tainting enabled:

document.write("Data tainting enabled: " + navigator.taintEnabled());

Try it yourself »


Definition and Usage

The taintEnabled() method was removed in JavaScript version 1.2, and should be avoided to prevent run-time errors in the future.

The taintEnabled() method returns a Boolean value that specifies whether the browser has data tainting enabled.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The taintEnabled() method is only supported in Internet Explorer and Opera.

Note: Internet Explorer 5 and earlier versions does not support data tainting and will therefore always return false.


Syntax

navigator.taintEnabled()

Parameters

None

Technical Details

Return Value: A Boolean, indicating whether the browser has data tainting enabled.

Returns true if data tainting is supported and enabled, otherwise it returns false


Navigator Object Reference Navigator Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook