How to use Navigator taintEnabled in Javascript

In this article I have described about Navigator taintEnabled() method in Javascript.
  • 1415

Navigator taintEnabled() method in Javascript

  • To check the browser capability like datatainting browser we use taintEnabled() method of navigator object.
  • It return boolean value i.e. true or false to check datatainting capability of browser.

Browser support

Following are the main browsers which support the Constructor Property of array object

  • Internet Explorer.
  • Firefox.
  • Opera.
  • Google Chrome.
  • Safari.


The taintEnabled() method of navigator object has following syntax


Lets take an example

<!DOCTYPE html>


<body style ="background-color:green">

<script type="text/javascript">

    document.write("Browser Datatainting Capability :- " + navigator.taintEnabled());






Further Readings

You may also want to read these related articles :here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here


More Articles

© 2018 DotNetHeaven. All rights reserved.