How to use Navigator taintEnabled in Javascript
In this article I have described about Navigator taintEnabled() method in Javascript.
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.
Syntax
The taintEnabled() method of navigator object has following syntax
navigator.taintEnabled()
Lets take an example
<!DOCTYPE html>
<html>
<body style ="background-color:green">
<script type="text/javascript">
document.write("Browser Datatainting Capability :- " + navigator.taintEnabled());
</script>
</body>
</html>
|
OUTPUT
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