This method always returns false.
javaEnabled()
None.
The boolean value false.
false
if (window.navigator.javaEnabled()) { // code will never be executed; the condition is always false }