JavaScript » Navigator » javaEnabled

Syntax:
navigator.javaEnabled()

This method tests whether or not Java is enabled returning true if it is and false if not.