Skip to content

How to Allow or Block JavaScript in Edge Computer

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, but it may also prevent some websites from functioning correctly.

Configure JavaScript Execution on Edge browser

JavaScript has one of the most used web technology on modern websites. Its primary use is creating an interactive website 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 spamming material. Microsoft Edge has an in-built system to allow or block JavaScript execution.

You can also blacklist or whitelist certain websites to allow or block JavaScript on the Microsoft Edge Chromium browser.

Block JavaScript

Some websites misuse JavaScript to hack into your system and steal your data. N one would like that. So, blocking JavaScript edges for such websites at once is always better.

Here are the steps to block the JavaScript edge execution:

  1. Launch the Microsoft Edge on the Computer.
  2. Click on the More horizontal 3dots icon menu for options.
  3. Select Settings from the list.
  4. Switch to the Cookies and Site Permissions from the sidebar menu.
  5. Choose the JavaScript option within Site permissions.
  6. Toggle the button to Turn OFF and block the JavaScript execution.
    Block JavaScript on Edge Computer Browser

This 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

There are a few websites that use JavaScript to serve their best purpose. We must know how to allow javascript for such websites. Here are the steps to allow the JavaScript execution:

  1. Launch the Microsoft Edge on your computer.
  2. Click on the More horizontal 3dots icon menu for options.
  3. Select Settings from the list.
  4. Switch to the Cookies and Site Permissions from the sidebar menu.
  5. Choose the JavaScript option within Site permissions.
  6. 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 for various purposes. However, few people may use it to hack and steal data from your computer. We should be aware enough to know the safe websites and the ones that are not.

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

If you find this article about JS settings in Edge computers helpful and think it may help someone you know, please share it with them.

Lastly, if you've any thoughts or feedback on How to Allow or Block JavaScript in Edge Computer, 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 using our links; of course at no extra cost to you (indeed, you may get special discounts).
nv-author-image

Kushal Azza

Kushal has a Bachelor of Engineering in Mechanical; however, his passion for technology and gadgets has made him a digital & tech geek. He has over a decade of experience solving tech problems and creating digital solutions. Follow him on Twitter and LinkedIn.

Share us your thoughts and feedback

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