SOLVED: javascript:void(0)

Some computer users may encounter the error javascript: void(0) while browsing the internet. While it is not a very critical error, it sure is irritating to encounter. When you encounter the javascript: void(0) error it most probably is an indication of an error stemming from your browser; which in turn blocks you from accessing a particular website. Interestingly, the above error only appears when the user tries to access some websites; not all of them. The root cause of the error can be traced to a resident pop up blocker in your internet browser. Also, it may be triggered by a proxy server if you are connecting to the internet through a proxy.

How can the javascript: void(0) error be fixed?

There are several approaches to this, depending on what caused the javascript error in the first place. If it is caused by a proxy server and you are connecting to the internet via a shared computer, it may be a regular occurrence. In such a case you are advised to contact the network administrator for assistance. Otherwise, below are the steps that you need to follow to eliminate the javascript: void(0) error.

NOTE: Make sure that Javascript is working properly on your machine. This may differ from web browser to web browser.

Option 1: Enabling Javascript

The main reason why users encounter the said error message is that Javascript is disabled on their browsers. Javascript is a plugin which is mostly disabled by default on all browsers. Here, you have to manually enable the Javascript so the site can render its page using the technology. You can always revert the changes back if this doesn’t work for you.

Internet Explorer/Edge

For Internet Explorer, you can check if Javascript is working ok as below;

  1. In the open Internet Explorer/Edge window, click on tools.
  2. Select Internet Options.
  3. Select the Security tab and click on the custom level button.
  4. Scroll downwards until you reach the option ‘Scripting of Java applets’ under the bullet ‘Scripting’.
  5. Ensure that the ‘Enable’ is selected, and then click Ok.
    Enable Javascript in Internet Explorer

Google Chrome

While the overall Internet Explorer settings also apply to Google Chrome, you can still check the Java status within Chrome.

  1. Locate the icon at the top right-hand side of the Google Chrome window (3 parallel horizontal dashes). Click on it.
  2. Move the cursor downward and click on Settings.
  3. Go to Show Advanced Settings.
  4. Under ‘Privacy’, click on Content Settings.
  5. Under ‘JavaScript’, click on Allow all sites to run JavaScript (recommended).
  6. Click OK.
    Allow All Sites To Run Javascript in Chrome


For Firefox, do the following;

  1. Click on the icon in the top right corner (similar to Chrome’s).
  2. Click ‘Add-ons’.
  3. Click on the ‘Plugins’ tab.
  4. Click the Java ™ Platform plugin
  5. Check the “always activate” button.
Allow Javascript

Now you have Java enabled on your browser. Restart your browser and try accessing the website which triggered the error. The javascript: void(0)  should no longer appear. If it does, try the following alternatives as well.

Option 2: Reload the page by bypassing the cache

This option refreshes corrupted or possibly outdated files. While holding the shift key, click on the Reload button. The shortcut for this is CTRL + F5. Mac users can use Command + Shift + R.

Option 3: Clear the Cache.

The cache of your browser is used by websites to store temporary information so that data can be fetched from local storage instead of fetching from the internet. However, there are numerous instances where this cache might get corrupt or outdated. If this happens, Javascript might not be able to work properly. Resetting the cache might work in this case.

Clearing your browser’s cache may vary depending on the browser in use, but the method in Firefox is as below

  1. Launch Firefox, click on Hamburger Menu and then click on Preferences.
  2. Now click on Privacy & Security and then click on Clear Data.
    Clear Data of Firefox
  3. Now click on Cached Web Content and then click on Clear.
    Clear Cached Content in Firefox

Restart your browser and try again.

Option 4: Remove cookies from your browser

As our last resort, we will try to clear all the cookies from your browser. Nowadays, almost all websites make use of cookies to track user preferences and for security purposes as well. If the cookies are somehow outdated or corrupt in your computer, you will get the Javascript Void error message. Here are the steps on how to remove cookies from Chrome. You can replicate the steps at your own browser accordingly.

  1. Press the three-dots present at the top-right side of the screen and select Settings.
  2. Scroll down to the bottom and click on Advanced.
  3. Now, click on the button of Clear browsing data. You can select the time-frame according to your scenario. Make sure you select all the options.
    Clear Browsing Data in Chrome
  4. After clearing the browsing data and cookies, restart your computer and check if the issue is resolved.
Kevin Arrows
Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.

Expert Tip

SOLVED: javascript:void(0)

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested