How to Fix the JavaScript Must Be Enabled Error When Signing in to Microsoft Office
Question details
Users are unable to log in to Office applications due to a JavaScript error.

- Product
- Microsoft Office
- Device & OS
- not provided
- Scenario
- Attempting to sign in to Microsoft Word or other Office applications to authenticate an account.
- Observed behavior
- A 'JavaScript must be enabled' error displays and blocks the sign-in process, even though JavaScript is confirmed enabled in Microsoft Edge. Reinstalling the Office suite does not resolve the issue.
Before modifying your system and browser settings, ensure that all Microsoft Office applications are completely closed and that you are logged into an account with administrative privileges.
Reset Microsoft Edge Settings
Since Office relies on Microsoft Edge's web engine for its sign-in prompts, resetting the browser to default can clear corrupted data causing the JavaScript error.
Modern Microsoft Office applications use the Microsoft Edge WebView2 component to render login screens. Even if JavaScript appears enabled, underlying profile corruption in Edge can cause authentication scripts to fail.
Launch Microsoft Edge, click the three-dot menu icon in the top right corner of the window, and select 'Settings' from the dropdown menu.
In the left-hand sidebar of the Settings page, click on 'Reset settings'.
Click the 'Restore settings to their default values' option. A confirmation dialog will appear; click 'Reset' to confirm the action.
Close Microsoft Edge, open Microsoft Word or your preferred Office app, and attempt to sign in again.

Reset Security Zones in Internet Options
Use this solution if resetting Edge does not work. Windows system-level internet properties dictate how scripts run in embedded browser frames.
Install a Microsoft Edge Preview Build
Installing an alternative build of Edge (like Beta or Dev) can bypass core bugs present in the current stable release of the Edge WebView engine.
Switch to WPS Office to Avoid Complex Login Errors
If you are tired of dealing with persistent Microsoft Office sign-in issues and complex browser dependencies, try WPS Office. It provides a reliable, streamlined document editing experience that does not require complicated internet security configurations just to access your files.
- 1. Download the installer: Visit the official WPS website and download the free installation package for your operating system.
- 2. Install WPS Office: Run the downloaded file and follow the quick on-screen prompts to complete the installation.
- 3. Edit your documents instantly: Open WPS Office and start editing your Word, Excel, and PowerPoint files directly without dealing with forced authentication screens.

Frequently Asked Questions
Why does Microsoft Office care about my Microsoft Edge settings?
Modern versions of Microsoft Office use an embedded version of Microsoft Edge (called WebView2) to display web-based interfaces, including the login screen. If Edge's settings are corrupted or blocking scripts, the Office login screen will fail to load properly.
How can I verify if JavaScript is actually enabled in Microsoft Edge?
To check your JavaScript settings, open Microsoft Edge, go to Settings > Cookies and site permissions, scroll down to 'JavaScript', and ensure the toggle is set to 'Allowed'.
Will reinstalling Microsoft Office fix the JavaScript sign-in error?
In most cases, no. Reinstalling Office does not reset the underlying Windows internet properties or Microsoft Edge user profiles where the root cause of this specific JavaScript error resides.




