Skip to content

How to Allow or Block JavaScript in Chrome Computer?

Uses of JavaScript not only vary as per the users but also as per the developer. Some might use it for a good user experience and some for spreading malicious software. So, we need to carefully decide that either we want to allow sites to use it or not. To allow the JavaScrip in Chrome Computer, tap on the three dots at the top right corner and then open the Privacy and Settings option. From there open the Site settings and then the JavaScript. Now, tap on the checkbox next to the option stating, Sites can use JavaScript. If you want to block the JavScrip then tap on the other checkbox.

JavaScript is one of the most used web technology on modern websites. It is used for creating 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 need to be very careful when visiting a website that 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 was afraid that it can be used to hack into her personal information.

Related: How to Block or Enable JavaScript on Chrome Android?

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

How to Block JavaScript in Chrome Computer?

By default the 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 Computer.
  2. Click on 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. Tap on the check box next to the option stating, Sites can use JavaScript. 

JavaScript blocked on chrome computer

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

All the websites that are listed in the Block section will automatically be blocked to run the JavaScript code.

How to Allow JavaScript in Chrome Computer?

If you have already blocked the Javascript and the website is not loading properly, then the problem may lie in 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 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. Tap on the checkbox next to the option stating, Don’t allow the sites to use 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, then you can all the URLs in the Allow section.

Allow JavaScript on website URL in chrome computer

The website listed in the allow section will be running 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 JavaScript by whitelisting in the chrome browser. If you block the JavaScript execution, then the website might not run as expected. You might find a few missing resources. Perhaps, you can block only the sites that cause issues.

Personally, I keep the JavaScript execution enabled since I browse too many sites in a day. But, if I find any malicious site or feel doubtful, then 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 also allow or block JavaScript in the chrome android browser. You can even whitelist selected sites to allow JavaScript or block them by adding them to the Block bucket.

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

FAQs: Allow or Block the JavaScript in Chrome Computer

Now, we will move with some frequently asked questions regarding how to allow or block the JavaScript in Chrome Computer.

How to allow the JavaScript in Chrome Computer?

To allow the JavaScrip in Chrome Computer, tap on the three dots at the top right corner and then open the Privacy and Settings option. From there open the Site settings and then the JavaScript. Now, tap on the checkbox next to the option stating, Sites can use JavaScript. 

How to block the JavaScript in Chrome Computer?

To block the JavaScrip in Chrome Computer, tap on the three dots at the top right corner and then open the Privacy and Settings option. From there open the Site settings and then the JavaScript. Now, tap on the checkbox next to the option stating, Don’t allow the sites to use JavaScript. 

How to block only some specific sites from using the Javascript in Chrome Computer?

To block only some specific sites from using the JavaScript in Chrome Computer, tap on the three dots at the top right corner, and then open the Privacy and Settings option. From there open the Site settings and then the JavaScript. Now under the Not Allowed to use JavaScript, tap on Add and enter the site URL for which you want to block JavaScript.

Lastly, here are the recommended web browsers for computer and mobile phone that you should give a try.

WindowsMacOSiOSAndroidLinux
Chrome WindowsChrome MacChrome iOSChrome AndroidFirefox Linux
Firefox WindowsSafari MacSafari iOSEdge AndroidChrome Linux
Edge WindowsFirefox MacEdge iOSSamsung InternetEdge Linux

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 YouTube 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).

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 *