OneDrive app on Windows 11 as it owns a few applications by default for you to access your OneDrive storage space as account or others. There is one error which almost everyone gets i.e. OneDrive Javascript Error in windows 11 or 10
Read: How to Fix Can’t Move OneDrive Shortcuts
OneDrive Javascript Error on windows 11 and 10
So essentially the built-in OneDrive app is useless in Windows 10, thanks to script errors. It is not only a huge waste of resources, but also highly irritating, as regular Windows 10 users already know their way around the onboard OneDrive app pretty quickly.
A OneDrive app on Windows 11 might also result in a OneDrive JavaScript error due to the flawed JavaScript or VBScript code within the OneDrive app. The actual code or Connectivity to the Internet.
Thankfully, these two proved to be the best way to instantly solve javascript mistakes in the OneDrive software from Windows 11, Windows 10.
Method 1: Enable Active Scripting
You can enable Active Scripting on your computer to fix the OneDrive JavaScript error. You can follow the steps given below.
Step 1: Press Windows + R keys together to open the Run dialog box. Type inetcpl.cpl and click OK.
Step 2: Go to the Security tab and click on Custom level….
Step 3: Locate the Scripts section and make sure that the Enable Scripts in this section option is enabled. If Script Active is disabled, enable it, then click Yes.
Step 4: Click OK and restart your PC.
There should be no OneDrive script error on Windows 10 and the application should launch successfully after your computer starts up. If it’s still there, you can try the next method.
Method 2: Reset your Internet Explorer settings
If the Internet Explorer protocol settings are not working as expected on your computer, this can also prevent the Windows 10 OneDrive cod from working properly, as they both use the same Internet connection settings (built-in on Windows 10 OneDrive and the same settings are in the Internet Explorer application on your system).
Therefore, you can fix the JavaScript error in OneDrive by resetting your Internet Explorer settings. To reset Internet Explorer settings, you need:
Step 1: Close all open Internet Explorer and open a new Internet Explorer.
Step 2: Click on the gear icon and click on Internet Options.
Step 3: Go to the Advanced tab and click on Reset…
Step 4: In the Reset Internet Explorer Settings dialog box, click Reset….
Step 5: Once your Internet Explorer settings have been restored to default, click Close, then click OK.
Step 6: Restart your computer for your changes to take effect.
After your computer starts, the OneDrive JavaScript error will be fixed. If this method doesn’t work (which is highly unlikely), you can follow the next steps.
Step 1: Close any open Internet Explorer and open a new Internet Explorer window.
Step 2: Click on the gear icon and click on Internet Options.
Step 3: Go to the Advanced tab and click on Restore advanced settings.
Conclusion
Use the onscreen instructions to reset the advanced settings of Internet Explorer and unselect delete all settings After that, OneDrive script error in Windows 11 will be resolved.