How to Enable JavaScript in Microsoft Edge on Windows 11
JavaScript is the scripting language built into web pages. It makes buttons, videos, drop-down menus and login forms work. With JavaScript blocked, many modern sites load half-empty, ignore clicks or refuse to let you sign in.
Microsoft Edge allows JavaScript by default on every version of Windows 11, Home and Pro alike. If a site misbehaves or blocks your login, check this setting. It takes about a minute, and you don’t need to restart Windows or Edge.
Open Microsoft Edge, click the three dots in the top-right corner and select Settings. Go to Cookies and site permissions, click All permissions, find JavaScript and toggle it on. Reload the page afterward.
Step 1Open Edge Settings
You can reach the Edge settings page in two ways. Both end up on the same page, which holds your profile, security preferences and core browser features.
- Click the three dots (Settings and more) in the top-right corner of the Edge window.
- Select Settings from the menu. A Settings page opens in a new tab, with a list of categories down the left side.
Or skip the menu: click the address bar, type the Edge settings address and press Enter.
edge://settings into the address bar and pressing Enter is a quick way to reach the settings.
Step 2Go to Privacy, Search, and Services
If you used the menu, this is the step shown above. In the menu that pops up, click Settings. This opens the main settings page for Edge, with its list of categories on the left.
You may notice Privacy, search, and services in that list. It covers tracking prevention and security options, and it sits close to the setting we need, but the JavaScript switch is not inside it. If you opened it, go back to the category list. The next category is the one you want.

Step 3Find Site Permissions
Site permissions control what websites can do on your computer, including running scripts and accessing hardware such as your camera and location. Here is how to get to them:
- In the left menu of Edge settings, click Cookies and site permissions. The page on the right now lists cookie controls and a Site permissions section.
- Scroll to the Site permissions section.
- Click All permissions. You'll see every website control Edge offers, such as Location, Camera, Notifications and JavaScript.

Step 4Find and Enable JavaScript
Now turn JavaScript on:
- Scroll down the All permissions list until you find JavaScript.
- Click JavaScript. The JavaScript page opens.
- Look at the toggle at the top, labelled Allowed (recommended). Some Edge versions word it Allow (recommended). If the switch is off, click it. It should now read as on, which confirms JavaScript is enabled.
- Go back to the site that was giving you trouble and press F5 to reload it. Interactive parts should now work.
Below the main toggle are Block and Allow lists. Check the Block list if JavaScript is on globally but one site still fails. A site listed there stays blocked whatever the main switch says. Select the three dots next to it and remove it.
If the toggle is greyed out or you can't change it, your device is probably managed by an organization (work or school), and a policy is controlling the setting. Edge usually shows a "Managed by your organization" notice in this case. Only your IT administrator can change it.
You shouldn't normally do this, because most sites need JavaScript to work.

Reference:
https://support.microsoft.com/en-us/sharepoint/legacy/enable-javascript
Summary
In short: open Edge Settings, go to Cookies and site permissions, then All permissions, click JavaScript and make sure the toggle is on. Reload the page afterwards. No restart is needed.
Did this guide fix your problem?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
No comments yet — be the first to share your thoughts!