Navigator.taintEnabled() (Method)

This feature is no longer recommended. It is part of a now defunct security mechanism.


JavaScript - 1.1
JScript - 3.0
Internet Explorer - 4.0
Netscape - 3.0
Opera - 3.0
JavaScript syntax:-navigator.taintEnabled()

This method is only supported in order to prevent scripts from crashing. The data-tainting support was a short-lived means of sending data back to a server. The security implications became unworkable and the whole data tainting idea was deprecated.

The functionality was removed in JavaScript version 1.2. If you encounter this method in a script you are maintaining, you should seek to try and remove it to prevent run-time errors in the future.

If a browser implements this at all, it should return the value false for this method. Some earlier Netscape browsers may not. This functionality is highly deprecated and you can expect it to cause run-time exceptions in future.


See also:taint(), untaint()