How to fix the Java Virtual Machine fatal error in Windows 10

javascript void(0) fix

How do I fix javascript:void(0) on Windows 10?

Why should I download JavaScript code for Windows 10?