Internet Windows Android

A script error has occurred on this page. Fixing a script error on Windows

This simplest program has a JavaScript error that we need to find, because our code does not work with it and the modal window is not shown. Moreover, in JavaScript, many errors can be called fatal, because they can stop working not only your script, but also third-party JavaScript libraries until the error is fixed.

JavaScript. Fast start

What can help you find JavaScript errors? Browser console. Here we will briefly walk through this tool in various browsers, in particular it will be Firefox and Chrome. Both browsers have a console out of the box.

Let's start with Firefox. In order to see the error in our code, you need to open the browser console. To do this, right-click in the browser window and select Explore Element in the context menu.

A panel will appear at the bottom of the window in which we can examine and debug our code. I suppose if you have typed sites, you may already have used this code inspector to examine the layout. The tool greatly simplifies the life of a layout designer, I can't even imagine how websites were made up without it.

So, in the panel that opens, next to the Inspector tab, there is a Console tab, which interests us. Switch to it, refresh the page again and see all JavaScript errors. In our case, this is just one syntax error that occurred in the scripts.js file on the first line.

We just have to go to this file, notice that we forgot to enclose the string in quotes and fix this error:

Now there are no errors and the code has been successfully executed. In addition to the built-in console for Firefox, you can separately install the Firebug extension, which, in fact, is an analogue. After installing Firebug, you can call, like the built-in console, from the context menu or use the F12 hotkey for this. This is how Firebug looks like:

Well, the Chrome console:

It is also called from the context menu or by pressing F12.

Of course, the console is often unnecessary to fix an error in a single line of code. But if there are tens and hundreds of lines of code, then it is almost impossible to do without a console. At the same time, you can not only view errors in the console, but even write your own JavaScript code, but this is a topic for a separate article.

This article has come to an end, now you know how to find JavaScript errors in your code and fix them. If you want to learn more about JavaScript, then I recommend turning your attention to the separate one. Good luck!

JavaScript. Fast start

Learn JavaScript basics with a hands-on example of building a web application

Sometimes, Avira users have various problems with the program. We will talk about errors in scripts. So, if at the start of your favorite antivirus you see the inscription: "A script error occurred on this page" or a script, then something went wrong in the program. In most cases, such problems occur when various program files are damaged.

How to fix a script error

1. First, we carefully read the message that warned us about the problem. For example, we have a window with the inscription: Avira script error... How to fix the error without reinstalling the antivirus?

2. Often, the problem lies in the corruption of the system file of the program. The first thing we need to do is display the hidden and system folders. In Windows 7, go to any folder in the section "Arrange"... Further Folder and Search Options.

3. We need a tab "View"... In the list of properties that appear, you need to remove and add the required parameters. Like on a picture.

4. Now we can start searching for an object with an error. For example, we see a window with the text: "Script error line 523 character 196" or "Script error line 452 character 13"... In the URL field, the path of the file we need is displayed.

5. We are looking for it in the computer. When the file is found, you need to clear its contents. These errors are given as an example, you may have others, there are a lot of them.

If the file cannot be cleaned, and you do not want to reinstall the antivirus, then the user should contact Avira support. By the way, even as a result of reinstallation, the problem may remain if the uninstallation was not performed correctly. The best way to solve the problem is to remove Avira using standard Vidovs tools, then clean the computer from junk using special programs. Then you can reinstall the application. This is the safest and fastest way to solve the problem.

The Internet is becoming an integral part of every person's life, so it is no longer possible to imagine a day without new news. Browsers are the glue in the information delivery chain, but unfortunately they are not perfect. Failures can occur precisely when visiting a specific site, one of such problems can be a problem: "A script error has occurred on this page"... How to fix and what is the reason for the appearance of such an inscription?

How does the script fail?

An Internet site is a complex combination of different platforms in the form of scripts, images, text, etc. At first glance, everything may seem simple, but in reality it is not. The text language HTML, JavaScript, VBScript are just a few of the main components. Their well-coordinated work can be disrupted in the course of long work.

Since this error has only an informative component, the solution can be direct intervention in the main browser of the computer. Internet Explorer or Windows.

Problem with "Script Error" notification in browsers, programs and games

Solving the problem in Internet Explorer


In most cases, everything should have been working already. There are exceptions, though. Therefore, it is worth taking a closer look at the security system of Internet connections.

  1. Find everything in the same menu "Security"
  2. Set all the default settings (there is a corresponding column there).
  3. Clear all history, downloads, cookies and more.

We fix the problem in Windows itself and games

Launching programs (Avira, DriverPack Solution, KMPlayer, etc.) or games (World of Tanks,) may also be accompanied by a script error. Although in most cases this is all eliminated over time, but why wait for such a miracle, when a couple of actions can solve everything.


The last step is to call the command line, through the search input cmd... In the Command line that appears, write: regsvr32 msxml.dll... We press "Enter".

A home computer is a truly multifunctional device that can be used to solve a fairly wide range of tasks. Today it is both a source of information, an entertainment facility and a gaming center. This makes it all the more annoying for users to encounter malfunctions of such an important device. For example, when launching games, you may sometimes see a pop-up window that says "A script error has occurred on this page." The reasons for its occurrence and the necessary corrective measures will be discussed further.

Script error window

What is the essence and possible causes of the error "A script error has occurred on this page"

For a simple user, it is far from obvious that the stable operation of a computer is the result of the simultaneous interaction of dozens, and sometimes hundreds of different programs, scripts and utilities. A simple launch of an operating system is associated with the need for a huge amount of computation, not to mention the installation of complex and resource-intensive applications like 3D games.

It should be borne in mind that software developers are trying to minimize possible inconsistencies in the program code of their offspring, which will ensure its smooth operation on any version of the operating system. Unfortunately, this is not always possible and in some cases problems occur. This is exactly what happens when the system displays the message "A script error has occurred on this page." At the same time, the leaders in terms of non-docking are online games with their own clients to access the network, and.


Client error window

An example is an unsuccessful attempt to launch the famous game World of Tanks. However, there is a possibility that the same will happen during simple browser use.

Ways to troubleshoot script error

When considering how to fix page script errors, it should be noted that the algorithm of actions will depend on the specific circumstances of the problem.

Internet Explorer Browser

If the problem in question "A script error has occurred on this page" occurs while the page is being loaded by a browser from Microsoft, then first of all, you should refresh the page. This is done by clicking on the round arrow, which is located near the search line.


Reload the page

If this does not help, you need to do the following:

  1. Go to the settings section (small gear in the upper right corner);
  2. Select "Browser options";
  3. Select the "Additional" menu section;
  4. Track the marks of the items "Disable script debugging";
  5. Reload your browser.

Browser settings

In most cases, this will fix page loading issues.

Third party apps and games

If a script error occurs during an attempt to launch some working program, antivirus or an online game client, then the problem should be looked for in the system resources. It is worth noting that if you are not sure that the actions below can be carried out independently, then it is better to refuse to perform them. Usually, if the problem really lies in the conflict between the application code and the operating system, then the developers will fix the shortcomings in the next patch. Such a solution to the problem in some cases may be the most appropriate option, but it involves waiting.

If you have basic PC skills, then you can solve everything yourself. And first you need to open the command line. Depending on the version of the operating system, its location may differ slightly. For example, in Windows 7, you need to open the start menu, and in Windows 8, you should right-click on this icon, since the standard action opens the modified menu.

  1. So, in the command line, you must enter the command " regedit", Then press the button" enter».
  2. In the window that opens, select the "HKEY_LOCAL_MACHINE" folder, and then right-click on it.
  3. In the context menu that appears, click on the "Permissions" item.

Eliminating a script error

Another context menu will open, where you need to select the "All" item and provide full access by setting the appropriate checkboxes.


Change permissions
Change permissions

Then you need to go to "General Permissions" and check the box on "Shared Access". This is followed by saving the changes and restarting the PC.

The final action will be to write "regsvr32 msxml.dll" to the command line and confirm with the "Enter" key. If everything was done correctly, then the page script error will be eliminated.

Conclusion

Running applications and launching games is a complex process that requires precise matching of many parameters, so the likelihood of errors is quite high. However, subject to basic PC usage skills, all the necessary actions to eliminate them can be performed independently.

Probably, it is not necessary to say that many users of Windows-based computers quite often, when visiting some Internet resources, reveal a problem that is related to the fact that, instead of the expected opening of the page, the browser displays a message that a script error has occurred. How to remove this notification and eradicate the failure itself will be discussed further. And for a start, it is proposed to study some theoretical information that may be useful in the future when troubleshooting a failure. And special problems in eliminating such a failure are not expected. But, first of all, we will define all the most important aspects.

What is a script error?

First things first, let's look at the very nature of the failure. If someone does not know, when visiting any Internet resource, the page may contain not only text inserts or objects in audio and video, links to which are triggered automatically.

Yes, in fact, everything is automated in the sense that the user is given the opportunity to work comfortably not only in terms of launching some kind of players that allow playing video or audio (usually Flash Player is responsible for this), but also in terms of executing additional software applets that are integrated directly into the web page (ActiveX controls are responsible for this, which will not be considered in this situation).

Simply put, you press a button, and then a command is executed or a transition to an additional menu follows. It is a script execution facility based on VB Script and Java Script. If support for these executable components and their initial platforms is disabled, respectively, you will receive a script error. We will consider in more detail how to remove the appearance of such a misfortune. Regardless of the operating system installed, the solutions to fix this problem look almost the same.

Script error: how to remove it on Windows 7 using the simplest methods?

Basically, this failure affects the pre-installed Windows browser Internet Explorer. Despite all the improvements related to the upgrade to Windows 10, this browser has not become popular, although it demonstrates good performance in terms of performance.

But, if you are solving the problem of how to remove the script error on a computer with a Windows system on board, you should first enter the settings of the IE browser itself, which is installed as the default Internet surfing tool (in Windows 10, this is Edge).

To get started, just try restarting your browser or even rebooting your entire system. If the failure is temporary, it will be repaired. Regular page refresh (F5) can be used just as easily.

Script error: how to clean up on Windows 10. Script execution settings.

It goes without saying that one cannot count on such primitive methods. Since the failure manifests itself precisely in IE, it is worth using the settings, where the browser properties item is selected.

On the "Advanced" tab, there are several important items with which you need to perform the following actions:

  • set to disable script debugging;
  • deactivate the display of error notifications.

After performing such actions, a message about some kind of failure, at least, simply will not appear. But the error itself remains in the system. What should you do in such a situation?

Adding Permissions

Here, in the question of how to remove the script error, whether you like it or not, you will have to edit the registry keys.

First, enter the editor by entering the regedit command from the Run menu, then right-click on the HKLM branch and select the permission line from the context menu. After that, you will be redirected to the section for setting rights for specific users, where full access should be set for the selected subject.

Registering additional libraries

After that close the editor and go to using the command line (cmd as administrator).

Here you need to enter the line regsvr32 c: windowssystem32msxml.dll and press enter. But that is not all. The question of how to remove the script error also implies registering some additional libraries (DLLs) using the main regsvr32 command:

  • leaut32;
  • ole32;
  • msxml2;
  • msxml;
  • wshext;
  • vbscript;
  • scrobj;
  • scrrun;
  • jscript;
  • dispex;
  • corpol;

Additional measures

If a black screen appears in a running system (this is mainly due to the execution of scripts based on run.vbs, which indicates an implicit removal of viruses), you can use the restart of the explorer.exe process from the "Task Manager".

If this does not work, the problem of how to remove the script error can be solved by partially tampering with the registry, where you need to find the Winlogon key in the HKLM branch, and enter the value explorer.exe for the Shell parameter. Similarly, the Userinit key is set to the full path to the C: \ Windows \ System32 \ userinit.exe file.

Instead of a total

At the moment, these are all solutions that allow you to get rid of the described error. Initially, it is worth applying the settings of the built-in browser, unless, of course, you want to refuse to use it. But, as it is believed, the best solution would be to simply change the browser, which will be used by default on the system.