Skip to content

Block or Allow JavaScript in Edge browser on the Computer

Are you looking to allow or block JavaScript in Microsoft Edge? Learn how to manage JavaScript execution for sites using settings.

Microsoft Edge allows you to enable or disable JavaScript, a programming language commonly used to create interactive website content.

Disabling JavaScript can help to improve website performance and reduce the risk of security vulnerabilities. Still, it may also prevent some websites from functioning correctly.

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

Block the JavaScript for Sites

Some websites misuse JavaScript to hack into your system and steal your data. So, stopping JavaScript execution for such websites is always better. Here are the steps to block:

  1. Launch the Microsoft Edge on the Computer.
  2. Click on the More horizontal 3-dots icon menu and select Settings from the list.
  3. Switch to the Cookies and Site Permissions from the sidebar menu.
  4. Choose the JavaScript option within Site permissions.
  5. Toggle the button to Turn OFF and block the JavaScript execution.
    Block JavaScript on Edge Computer BrowserThis will completely block JavaScript for all the websites.

If you want to block the 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 Execution

The JavaScript is used in all the modern websites to make the site interactive. It’s one of the core web technology without which the sites might not load. Hence, we need to allow JS for such sites. Here are the steps to follow:

  1. Launch the Microsoft Edge on your computer.
  2. Click on the More horizontal 3-dots icon menu and select Settings from the menu list.
  3. Switch to the Cookies and Site Permissions from the sidebar menu.
  4. Choose the JavaScript option within Site permissions.
  5. Toggle the button to Turn ON to allow the JavaScript execution.
    JavaScript Allowed on Edge Browser for All Websites on Computer

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

Allow JavaScript for a Websites in Edge Computer

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

Bottom Line

JavaScript is an important feature used by website developers. However, few may use it to hack and steal data from your computer.

It is important to allow JavaScript for sites to run properly, however, we should consider restricting the execution only on the trusted sites.

Similarly, you can manage JavaScript settings in the Edge on Android. You can allow or block JavaScript execution on a mobile browser.

Lastly, if you've any thoughts or feedback, then feel free to drop in below comment box. You can also report the outdated information.

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 *