Skip to content

How to Allow or Block JavaScript in Chrome Computer

Most modern websites do use JavaScript for creating an interactive website experience. However, this JavaScript can be misused by hackers to inject hacking scripts. Hence the Chrome browser has the feature to allow or disallow the JavaScript execution for all the websites or customize further to selected sites.

JavaScript is one of the most used web technology on modern websites. It creates an interactive website that runs across various screen sizes. However, JavaScript can also be used for hacking the browser by injecting malicious scripts.

Hence, we must be cautious when visiting a website we aren’t aware of. And also, stay away from a website that provides hacking or illegal material. These sites mostly try to inject the code within your browser and gain access to the same.

My younger sister is a very skeptical person in general. She is always very wary about her privacy and other such settings. Yesterday, she came to me to assist her in disabling the JavaScript across the chrome computer. She feared it could be used to hack into her personal information.

Google Chrome has an in-built option to allow or block the JavaScript execution. You can block or allow certain websites to enable or disable JavaScript.

Block JavaScript Execution

By default, Chrome has Javascript enabled, but you can easily disable the javascript from the settings page. Just turn off the JavaScript toggle to disable and block the execution of JavaScript. One should know how to block JavaScript on Chrome to perform this operation.

Here are the steps on how to block JavaScript on a chrome computer:

  1. Launch the Google Chrome browser on the Computer.
  2. Click on the More vertical 3dots icon menu for options.
  3. Select Settings from the list.
  4. Scroll down to the Privacy and Security section, and select the Site settings from the menu.
  5. Choose the JavaScript option within Site settings.
  6. Click on the toggle to Block the JavaScript.
    JavaScript blocked on chrome computer

This will completely block JavaScript for all the websites. If you want to block JavaScript for any particular website or list of websites, you can add them under the Block section.

All websites listed in the Block section will automatically be blocked from running the JavaScript code.

Allow JavaScript

If you have already blocked the Javascript and the website is not loading correctly, the problem may be JavaScript blocking. In that case, just allow the JavaScript execution.

Here are the steps on how to allow JavaScript in Chrome computer:

  1. Launch the Google Chrome browser on your computer.
  2. Click on the More vertical 3dots icon menu for options.
  3. Select Settings from the list.
  4. Scroll down to the Privacy and Security section, and select the Site settings from the menu.
  5. Choose the JavaScript option within Site settings.
  6. Click on the toggle button to Allow the JavaScript.
    Allow JavaScript on chrome computer

This will allow all the websites to run the JavaScript code on the browser and execute the function within the code block. However, if you want to allow JavaScript execution on a few websites, you can find all the URLs in the Allow section.

Allow JavaScript on website URL in chrome computer

The website in the allow section will run the JavaScript code irrespective of the main switch.

Bottom Line: Chrome Computer JavaScript Settings

We can easily block the JavaScript on selected sites or allow the JavaScallowlistingelisting in the chrome browser. If you block the JavaScript execution, the website might not run as expected. You might find a few missing resources. Perhaps, you can block only the sites that cause issues.

I keep the JavaScript execution enabled since I browse too many sites daily. But, if I find any malicious site or feel doubtful, I quickly add it to the block section. However, I taught my younger sister how to block JavaScript on a chrome computer, and now she feels way more secure while browsing.

Similarly, you can allow or block JavaScript in the chrome android browser. You allow selected sites to enable JavaScript or block them by adding them to the Block bucket.

What sites should be blocked for JavaScript on a chrome computer?

Lastly, if you've any thoughts on How to Allow or Block JavaScript in Chrome Computer, then feel free to drop in below comment box.

Also, please subscribe to our @DigitalTechStudio YT channel for helpful videos tutorials.

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

Editorial Staff

Editorial Staff at BrowserHow is a team of Web Browser experts whose primary role is ensuring the content is up-to-date with the latest changes and factually correct information. Highly experienced in technical writing, tech troubleshooting, and content management. Follow us on Twitter.

2 thoughts on “How to Allow or Block JavaScript in Chrome Computer”

Leave a Reply

Your email address will not be published. Required fields are marked *