How to Fix “JavaScript Void(0)” in Chrome, Firefox & Edge

When you click a link and see something like javascript:void(0) instead of a webpage loading, it can be pretty confusing. This issue usually means your browser tried to execute a JavaScript action but couldn’t — often due to disabled scripts, conflicting extensions, or outdated components.

If you’re seeing this error on Google Chrome, Mozilla Firefox, or Microsoft Edge, don’t worry — you’re not alone. In this guide, we’ll explain what causes the “JavaScript Void(0)” message and show you step-by-step fixes for all major browsers.

What Does “JavaScript Void(0)” Mean?

The void(0) part of JavaScript basically tells the browser to “do nothing.” It’s often used in websites that rely on JavaScript for navigation or dynamic content.

However, if JavaScript is disabled, blocked, or broken, your browser can’t execute the script — and instead, it shows:

javascript:void(0)

In short, your browser is saying: I tried to run a JavaScript action, but it didn’t work.

Common Causes of the “JavaScript Void(0)” Error

This error can appear for several reasons, including:

  • JavaScript is disabled in your browser settings
  • Outdated cache or cookies interfering with script execution
  • Browser extensions or add-ons blocking JavaScript
  • Pop-up blockers or security software restricting web scripts
  • Corrupted browser profiles or incorrect configuration

How to Fix “JavaScript Void(0)” in Google Chrome

If you’re using Chrome, follow these steps:

1. Enable JavaScript

  1. Click the three dots (⋮) in the top-right corner → Settings.
  2. Go to Privacy and security → Site settings → JavaScript.
  3. Make sure “Sites can use JavaScript” is turned ON.
  4. Reload the affected webpage.

2. Clear Cache and Cookies

  1. Press Ctrl + Shift + Delete.
  2. Choose All time as the time range.
  3. Check Cookies and Cached images and files.
  4. Click Clear data, then restart Chrome.

3. Disable Extensions

  1. Open Menu → Extensions → Manage Extensions.
  2. Toggle off suspicious extensions like ad blockers.
  3. Reload the page to test.

4. Update Chrome

  1. Go to Settings → About Chrome.
  2. Let Chrome download updates.
  3. Restart to apply the update.

How to Fix “JavaScript Void(0)” in Mozilla Firefox

1. Enable JavaScript

  1. Type about:config in the address bar and press Enter.
  2. Click Accept the Risk and Continue.
  3. Search for javascript.enabled.
  4. If it’s false, double-click to set it to true.

2. Clear Cache

  1. Press Ctrl + Shift + Delete.
  2. Select Cookies and Cache.
  3. Choose Everything as the time range.
  4. Click OK to clear.

3. Disable Add-ons

  1. Press Ctrl + Shift + A to open Add-ons Manager.
  2. Disable extensions like NoScript, Adblock, or Privacy Badger.
  3. Refresh the page.

4. Update Firefox

  1. Open Menu (☰) → Help → About Firefox.
  2. Firefox will check and install updates automatically.

How to Fix “JavaScript Void(0)” in Microsoft Edge

1. Enable JavaScript

  1. Click the three dots (⋯)Settings.
  2. Go to Cookies and site permissions → JavaScript.
  3. Toggle Allowed (recommended) ON.

2. Clear Cache and Cookies

  1. Press Ctrl + Shift + Delete.
  2. Choose All time as the time range.
  3. Select Cookies and Cached images and files.
  4. Click Clear now.

3. Disable Extensions

  1. Open Settings → Extensions.
  2. Disable all extensions temporarily.
  3. Reload the site.

4. Update Edge

  1. Open Settings → About Microsoft Edge.
  2. Allow it to check for updates.
  3. Restart once complete.

Other Advanced Fixes

If the issue persists even after trying browser fixes, try these system-level solutions:

1. Disable Security or Antivirus Restrictions

Some antivirus tools block JavaScript for safety.
Temporarily disable them and check if the website loads correctly.

2. Reset Browser Settings

  • Chrome → Settings → Reset → Restore settings to their original defaults
  • Firefox → Help → More Troubleshooting InformationRefresh Firefox
  • Edge → Settings → Reset → Restore settings to default values

3. Try Another User Profile

Create a new browser profile and check if the issue persists. A corrupted profile can cause JavaScript failures.

4. Reinstall Your Browser

If none of the above works, uninstall and reinstall your browser to replace any damaged files.

Wrapping Up

Seeing javascript:void(0) pop up instead of a webpage is annoying — but it’s usually easy to fix.
By enabling JavaScript, clearing cache, disabling extensions, or updating your browser, you can quickly restore normal web functionality in Chrome, Firefox, or Edge.

Once you’ve fixed it, share which solution worked for you — it might help someone else get their browser back on track, too!

Posted by Arpita

With a background in Computer Science, she is passionate about sharing practical programming tips and tech know-how. From writing clean code to solving everyday tech problems, she breaks down complex topics into approachable guides that help others learn and grow.