Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Microsoft 365 desktop apps rely on embedded browser components and JavaScript. If they report that JavaScript is not available or scripts are blocked, the issue is typically with browser/script settings or a related runtime rather than with Office itself.
Try these steps depending on where the error appears:
- If the error appears in a browser (e.g., when using Microsoft 365 online or SharePoint):
- Enable JavaScript in the browser being used:
- Microsoft Edge (Windows 11):
- Open Edge and select … (More) > Settings.
- Go to Privacy, search, and services > Site permissions > All permissions.
- Select JavaScript and ensure Allowed (recommended) is turned on.
- Google Chrome:
- Open Chrome and go to Settings > Privacy and security.
- Select Site settings > JavaScript.
- Under Default behavior, select Sites can use JavaScript and then reload the browser.
- Safari (if applicable):
- From the Safari menu, select Settings > Security.
- Check Enable JavaScript, then close and refresh the browser.
- Microsoft Edge (Windows 11):
- Enable JavaScript in the browser being used:
- If the error appears when accessing SharePoint sites from Office/Edge/IE:
- Enable scripting in Internet Explorer compatibility scenarios (still used by some SharePoint/Office components):
- Open Internet Explorer and go to the SharePoint site.
- Press Alt to show the Menu bar, select Tools > Internet Options.
- On the Security tab, select Custom level.
- Scroll to Active scripting and select Enable.
- Enable scripting in Internet Explorer compatibility scenarios (still used by some SharePoint/Office components):
- If the error appears during sign-in or embedded web views (e.g., Power Automate / modern Office sign-in):
- Ensure the required web runtime is installed and working:
- Install or repair Microsoft Edge WebView2 Runtime using the official installer.
- If using Power Automate for desktop and seeing JavaScript-related login errors, add the registry key described in the guidance:
- Under
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Power Automate Desktop, createUseMsalDesktopFeatures(REG_DWORD) and set its value to1.
- Under
- Ensure the required web runtime is installed and working:
- If JavaScript is being blocked by extensions or security tools:
- Disable third‑party browser extensions that may block scripts, especially if using Power Automate or browser-embedded Office features:
- Turn off all third‑party extensions except the official Microsoft/Power Automate ones.
- Retry the Office/Power Automate action.
- If needed, replace JavaScript-based automation with built-in web automation actions.
- Disable third‑party browser extensions that may block scripts, especially if using Power Automate or browser-embedded Office features:
If, after enabling JavaScript and ensuring WebView2/embedded browser components are working, Office still reports that JavaScript is unavailable, a full repair or clean reinstall of Office may be required, using the uninstall troubleshooter and then reinstalling.
References:
- Enable JavaScript
- Enable scripts and reload this page when you try to open a SharePoint Server 2013 site
- Turn on JavaScript for Skype Meetings App (Skype for Business Web App)
- Can't sign in with a JavaScript error
- The "Run JavaScript function on web page" action doesn't execute but no error is reported
- I get a "stopped working" error when I start Office applications on my PC