if (navigator.javaEnabled() < 1) azioni se non c'è il java
if (navigator.javaEnabled() == 1) azioni se c'è