Skip to content

Block or Enable JavaScript in Chrome browser on Android

Are you looking to manage JavaScript execution in the Google Chrome app? Learn how to block or enable the JavaScript option.

JavaScript is a scripting language used by most modern websites. However, hackers can misuse it to inject scripts, leading to scams. Hence, it is good to block JavaScript when visiting an unsecured site.

However, blocking JavaScript can lead to sites not responding or working at all. Chrome browser on Android allows us to configure to enable or block the JS execution for all sites or add exceptions to restrict specific sites.

In this guide, we have shared the steps to manage the JavaScript settings in the Google Chrome app.

On this page, watch a video guide next or jump to read:

Watch the Video Tutorial

You can watch this screen recorded guide or skip to continue reading the written instructions.

How to Block or Enable JavaScript on Chrome Android?

Block JavaScript Execution

JavaScript is enabled for all the sites by default unless you’ve changed it. But, if you want to block or disable JavaScript, you can do it easily in the browser. Here are the steps to do:

  1. Launch the Chrome app on Android phones.
  2. Tap on the More vertical 3-dots icon menu for options.
  3. Select Settings from the list.
  4. Scroll down to the Site Settings option and tap to open.
  5. Tap on the JavaScript tab, which is default set to Allowed.
    Chrome Android JavaScript Blocked
  6. Toggle the button to Turn OFF and Block the JavaScript on Chrome Android.

It will completely block the JavaScript loading from the websites on your Chrome browser. However, in the ideal online world, blocking JavaScript is not preferred. This will screw up the entire website design, and you may show plain text only.

Configure JavaScript with Site Exception

Configuring JavaScript to allow or block certain websites is possible with the site exceptions option.

  1. Launch the Chrome browser on Android.
  2. Tap on the More vertical 3-dots icon menu for options and select Settings from the list.
  3. Scroll down to the Site Settings option and tap to open.
  4. Tap on the JavaScript tab, which is default set to Allowed.
  5. Tap on the command + Add site exception on the JavaScript settings page
  6. Enter the website URL you add to the exceptions list in the window.
    Add site exception for JavaScript on Chrome Android
  7. Tap on the Add command button to commit the changes.

The exception will behave based on your JavaScript settings — Allowed or Blocked.

If you add any website to the site exception list, the behavior is inversed by the setting of the JavaScript toggle. i.e.

  • if you have Allowed JavaScript, then site exceptions will be blocked, and
  • if you have Blocked JavaScript, then site exceptions will be allowed to load JS in Chrome.

Bottom Line

You can completely customize the javascript execution on Android smartphones. You can enable or disable execution for any website per need. The exceptions in the javascript settings page make it highly efficient on the web browser.

Similarly, you can configure JavaScript on a Chrome computer. The site exceptions feature is also available in the computer browser.

Please share the article if you find it helpful:

Disclosure: This page may contain affiliate links, which means we may receive compensation for your purchases; of course at no extra cost to you (indeed, you may get special discounts).
Kushal Azza

Kushal Azza

Kushal Azza is a Google Certified IT Professional, Digital Content Creator, and Go-To Digital Marketer with Engineering Degree. He has over a decade of experience solving tech problems, troubleshooting, and innovating digital solutions. Follow him on Twitter and LinkedIn.

Leave a thought or feedback

Please leave a descriptive comment or feedback with your real name. Our human moderator vets every comment, and it may take 24 to 48 hours to get published or rejected.

Your email address will not be published, and we will never spam your inbox. Required fields are marked *