Enabling JavaScript in Browsers
Enabling JavaScript in Browsers
All the modern browsers come with built-in support for JavaScript. Frequently, you may need to
enable or disable this support manually. This chapter explains the procedure of enabling and
disabling JavaScript support in your browsers: Internet Explorer, Firefox, chrome, and Opera.
Here are simple steps to turn on or turn off JavaScript in your Internet Explorer −
To disable JavaScript support in your Internet Explorer, you need to select Disable radio button
under Active scripting.
JavaScript in Firefox
Then you will find the warning dialog. Select I’ll be careful, I promise!
Then you will find the list of configure options in the browser.
There you will find the option to enable or disable javascript by right-clicking on the
value of that option → select toggle.
Click the Chrome menu at the top right hand corner of your browser.
Select Settings.
In the "Javascript" section, select "Do not allow any site to run JavaScript" or "Allow all
sites to run JavaScript (recommended)".
JavaScript in Opera
To disable JavaScript support in your Opera, you should not select the Enable JavaScript
checkbox.
If you have to do something important using JavaScript, then you can display a warning message
to the user using <noscript> tags.
You can add a noscript block immediately after the script block as follows −
<html>
<body>
<script language = "javascript" type = "text/javascript">
<!--
document.write("Hello World!")
//-->
</script>
<noscript>
Sorry...JavaScript is needed to go ahead.
</noscript>
</body>
</html>
Now, if the user's browser does not support JavaScript or JavaScript is not enabled, then the
message from </noscript> will be displayed on the screen.