THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

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