1. Home
  2. Windows

How to Fix javascript: void(0) Error in Chrome

Javasript is omnipresent in our lives. You’d be hard put to find a website that doesn’t use it. They definitely exist but they’re rare and will normally feature static content. Websites that update dynamically e.g., live updates and feeds, are able to do so with Javascript.

javascript: void(0) Error

Because Javascript is used by websites, we interact or experience it through our browsers. Modern browsers like Chrome and Firefox support Javascript out of the box. All you need to do is install one of the two browsers (or any other modern browser) on your desktop and you can access any modern website.

Fix the javascript:void(0) error

Javascript is an essential building block of many websites which is why, if there’s a problem with your browser, on your desktop OS, or the Javascript running on a website, you will not be able to access a particular or all websites.

One common error that’s shown when something goes wrong with Javascript is the javascript void 0 error. 

Website specific error

The javascript void 0 error is an error shown by a website as it loads. It may manifest in different ways but it doesn’t necessarily mean that you’ll see the error on every single website.

Check if you get the error on other websites. If not, the error is specific to a website. There may not be much you can do to fix this since it’s on the website’s end but try the other fixes listed below. You can inspect the web console in your browser and let the website owner know about the problem.

Browser specific error

Many modern browsers are now Chromium-based but that still doesn’t mean they’re all the exact same. Some browsers may have trouble with certain websites while others may not. Try using a different browser to access the website.

Disable add-ons/extensions

Add-ons and extensions are great but they can interfere with websites and the content as it loads. If you’ve suddenly started getting the javascript void 0 error after installing a new extension/add-on, disable it and try again.

Try disabling all extensions/add-ons and then access the website.

Disable desktop content filers 

Ad-blockers and content filters aren’t exclusive to browsers. They can be installed on desktops as apps much like network monitoring tools can. They proactively block ads within all apps but they can cause problems with Javascript.

If you’re using a content filter on the desktop, disable it and try accessing the website. 

Enable Javascript

Javascript is enabled by default in modern browsers but if you’re in the habit of changing your browser’s setting, you may have disabled it or something needed to run Javascript.

1. Chrome

  1. Click the more options button at the top right in Chrome and select Settings.
  2. Go to Privacy and security.
  3. Select Site settings.
  4. Scroll to the Content section at the very end.
  5. Make sure Javascript is set to Allowed.

2. Chromium-Edge

  1. Open Control Panel.
  2. Go to Network & Internet>Internet Options.
  3. Select the Security tab.
  4. Click the Custom level button.
  5. Enable ‘Scripting of Java applets’.

3. Firefox

  1. Open Firefox and enter about:config in the URL bar.
  2. Accept the on-screen warning.
  3. In the search bar, look for “javascript. enabled” and make sure its value is set to True.
  4. If it is set to False, double-click it to change it to True.

Conclusion

Javascript errors are rarely resolved by users. Unless you’ve installed a buggy extension or you haven’t updated your browser in an exceptionally long time, there isn’t much you can do to fix these error types.

It is up to a website administrator to fix them but you can help then by providing console logs from your browser.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.