How to Enable or Disable JavaScript in Chrome or Firefox

By default, the JavaScript is enabled in Google Chrome and Firefox.

If you want to enable or disable it, then here are the steps to do the task:

Enable or Disable JavaScript in Chrome

Here's how you can disable JavaScript in Chrome web browser:

  • angle-right
    ​Open Chrome.
  • angle-right
    ​Copy the following and paste it in the Address Bar of Chrome: chrome://settings/content/javascript
  • angle-right
    ​Now, hit "Enter" key and you can see this screen:
JavaScript screen
  • angle-right
    ​Click on "Allowed (recommended)."

​That's all. The JavaScript is disabled successfully.

The JavaScript is disabled

Notes:

If you want to enable it, then here are the steps:

​Copy the following and paste it in the Chrome's Address Bar: 

chrome://settings/content/javascript

Hit "Enter" key. Now, click on "Blocked."

That's it. The JavaScript is enabled.

You can click on "Add" button beside "Block" to add the site for which you want to block JavaScript. When JavaScript is enabled, you can use this option to block JavaScript for specific websites.

You can click on "Add" button beside "Allow" to add the site for which you want to allow JavaScript. When JavaScript is disabled, you can use this option to enable JavaScript for specific websites.

Enable or Disable JavaScript in Chrome for Android

Here's how you can disable JavaScript in Chrome for Android:

  • angle-double-right
    ​Open Chrome for Android.
  • angle-double-right
    ​Hit the Overflow Menu (three vertical dots) > Settings > Site settings.
  • angle-double-right
    ​Tap on "JavaScript" which you can find between "Notifications" and "Pop-ups and redirects."
  • angle-double-right
    ​Now, tap "JavaScript."
JavaScript option

​That's all. The JavaScript is disabled successfully.

The JavaScript is disabled in Chrome app

Notes:

You can see "Add Site Exception" (see above screenshot) now. If you wish, click on this option and then add the site for which you want to allow JavaScript.

If you want to enable JavaScript, then follow the above steps.

Enable or Disable JavaScript in Firefox

Here's how you can disable JavaScript in Firefox:

  • angle-double-right
    ​Open Firefox.
  • angle-double-right
    ​In the Address Bar, type "about:config" (without double quotes) and then press "Enter" key.
  • angle-double-right
    ​Now, click on "I accept the risk!" button.
I accept the risk! button in Firefox
  • angle-double-right
    ​In the "Search" at the top, type "javascript" (without double quotes).
  • angle-double-right
    ​You can see "javascript.enabled" now. Right-click on it and then click "Toggle."
Toggle option

​That's all. The JavaScript is disabled successfully.

JavaScript is disabled

Note: If you want to enable JavaScript in Firefox, then follow the above steps.

Enable or Disable JavaScript in Firefox for Android

Here's how you can disable JavaScript in Firefox for Android:

  • angle-right
    Open the Firefox app.
  • angle-right
    ​In the Address Bar, type "about:config" (without double quotes) and then press "Enter."
  • angle-right
    ​In the "Search" at the top, type "javascript" (without double quotes) and you can see "javascript.enabled" now.
  • angle-right
    ​Tap on it, and you can see "Toggle" option. Tap on the "Toggle" option.
Toggle option in Firefox app

​That's it. The JavaScript is disabled successfully.

JavaScript is disabled in Firefox app

Note: If you prefer to enable JavaScript, then follow the above steps (1-3) and then tap on "Reset" option.

Reset option

​I hope that this guide is useful to you. If you like this guide, share with your friends.

How to Enable or Disable JavaScript in Chrome or Firefox

Click to Tweet This Post

Also see: