Enabling JavaScript

JavaScript needs to be enabled by the client side browser. Generally,  all the modern browsers have built-in support for JavaScript.  If you disable JavaScript, the text will be changed as the events will not be fired.

How to enable JavaScript?

Different browser has different procedure for enabling JavaScript. Here are the simple steps to turn on or turn off JavaScript described below:

JavaScript in Internet Explorer 

  • Choose Tools, Internet Options from the menu in Internet Explorer.
  • Select Security tab from the dialog box appeared on your screen.
  • Click on the Custom Level button.
  • Scroll down until Scripting option comes.
  • Select Enable button under the Active scripting.
  • Finally click OK and you are done

To disable JavaScript in Internet Explorer, you need to select Disable button under the Active scripting.

JavaScript in Firefox 

  • Open a new tab and type about:config in the address bar.
  • Select I’ll be careful, I promise! From the warning dialog box.
  • In the search bar, search for JavaScript.enabled.
  • Now you will get the option to enable or disableJavaScript by right-clicking on the value of that option select toggle.

When JavaScript.enabled is set to true; it is converted to false upon clicking toggle whereas if JavaScript is disabled; it gets enabled upon clicking toggle.

JavaScript in Chrome 

  • Click on the Chrome menu at the top right corner of your browser screen.
  • Select Settings from the menu.
  • Click on the Show advanced settings option at the end of the page.
  • From the Privacy section, click on the Content settings button.

From the JavaScript section, select Do not allowany site to run JavaScript” or “Allow all sites to run JavaScript(recommended) and you are done.

JavaScript in Opera 

  • Choose Tools → Preferences from the menu bar.
  • Select Advanced option from the appearing dialog box.
  • Choose Content from the listed items.
  • Select Enable JavaScript option.
  • Finally click OK and you are all set for JavaScript support in your Opera.

To disable, just uncheck the Enable JavaScript checkbox.

Warning for Non-JavaScript Browsers

If you want to detect whether JavaScript is enabled or supported by the client’s browser, then you can display a warning message to the client using the <noscript> tags just like the below example:

Upon writing the above code snippet, the text from </noscript> will be displayed on the screen in the cases below:

  • The user’s browser does not support JavaScript or
  • JavaScript is not enabled by the current browser.