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
- Click the three dots (⋮) in the top-right corner → Settings.
- Go to Privacy and security → Site settings → JavaScript.
- Make sure “Sites can use JavaScript” is turned ON.
- Reload the affected webpage.
2. Clear Cache and Cookies
- Press Ctrl + Shift + Delete.
- Choose All time as the time range.
- Check Cookies and Cached images and files.
- Click Clear data, then restart Chrome.
3. Disable Extensions
- Open Menu → Extensions → Manage Extensions.
- Toggle off suspicious extensions like ad blockers.
- Reload the page to test.
4. Update Chrome
- Go to Settings → About Chrome.
- Let Chrome download updates.
- Restart to apply the update.
How to Fix “JavaScript Void(0)” in Mozilla Firefox
1. Enable JavaScript
- Type
about:configin the address bar and press Enter. - Click Accept the Risk and Continue.
- Search for
javascript.enabled. - If it’s false, double-click to set it to true.
2. Clear Cache
- Press Ctrl + Shift + Delete.
- Select Cookies and Cache.
- Choose Everything as the time range.
- Click OK to clear.
3. Disable Add-ons
- Press Ctrl + Shift + A to open Add-ons Manager.
- Disable extensions like NoScript, Adblock, or Privacy Badger.
- Refresh the page.
4. Update Firefox
- Open Menu (☰) → Help → About Firefox.
- Firefox will check and install updates automatically.
How to Fix “JavaScript Void(0)” in Microsoft Edge
1. Enable JavaScript
- Click the three dots (⋯) → Settings.
- Go to Cookies and site permissions → JavaScript.
- Toggle Allowed (recommended) ON.
2. Clear Cache and Cookies
- Press Ctrl + Shift + Delete.
- Choose All time as the time range.
- Select Cookies and Cached images and files.
- Click Clear now.
3. Disable Extensions
- Open Settings → Extensions.
- Disable all extensions temporarily.
- Reload the site.
4. Update Edge
- Open Settings → About Microsoft Edge.
- Allow it to check for updates.
- 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 Information → Refresh 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!