Lagos, Nigeria

Teams: An Error Has Occurred in the Script on This Page – Technipages

When you try to login to Microsoft Teams, you may occasionally get the following error: ‘An error has occurred in the script on this page‘. However, your Teams desktop or web app is not the source of this error. Something else on your system is triggering it. Most likely, another app or program is the culprit.

Fix: An Error Has Occurred in the Script on This Page

Update Your App/Browser

If you received this error when using the Microsoft Teams desktop app, check for updates. Click on your profile picture and select Check for updates.


If this error occurred while you were using Teams on the web, update your browser. Additionally, try clearing your browser cache and disable all your extensions. Check the results.

Close Background Apps and Processes

Other programs and processing might be interfering with Teams. That could explain why your computer says it detected an error in the page script. To solve the problem, you need to make sure Teams is the only non-OS program running on your machine.

There are two ways to do that. You can either launch the Task Manager and manually end all the redundant apps and programs or clean boot your machine. For detailed instructions, see What is a Windows Clean Boot and How to Perform One.

If you choose to use the Task Manager, click on the Processes tab and right-click the app or program you want to close. Then select End task.

end task skype task manager

Disable Script Error Notifications

Alternatively, if you don’t want to see any script error notifications on your desktop, you can simply hide these alerts. However, keep in mind that this method won’t actually fix the problem. It only hides the alerts. In other words, it hides the symptoms but it does not fix the underlying cause.

  1. Type Internet Options in the Windows Search bar and double-click on the first result.
  2. Then navigate to the Advanced tab and go to Browsing.
  3. Uncheck the following options:
    • Display a notification about every script error.
    • Disable script debugging (Internet Explorer).
    • Disable script debugging (Other).internet options disable script errors
  4. Apply the changes and launch Teams again.

Clear Temporary Files

Every time you launch an app or visit a webpage, temporary files get created and stored on your device. As they continue to pile up, they may sometimes cause page script errors. Remove these files and check if you’re still getting page script alerts.

  1. Type ‘disk cleanup‘ in the Windows Search bar and select the first result.
  2. Select your main drive.
  3. Delete your Temporary Internet files and old Windows Update versions.disk cleanup free disk space
    • Note: Delete old Windows update files only if your computer is working smoothly and you’re not planning to uninstall recent updates.
  4. Hit the OK button and confirm your choices.


‘An error has occurred in the script on this page’ is actually a generic Windows 10 error. It can affect Microsoft Teams, as well as other programs. The error is usually triggered by conflicting programs or temporary files.

How did the troubleshooting process go for you? Feel free to drop us a comment below.

This post was written by Madalina Dinita and was first posted to Technipages

Do you find this article helpful? Your Friend might too. So, please Share it with them using the Share button above.
Will you like to get notified when I post new updates? Then Follow me on any of my social media handles: Google News, Telegram, WhatsApp, Twitter, Facebook, Pinterest.
You can also drop your email address below if you wish to be notified by mail.

Tags: , ,

%d bloggers like this: