Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check if JDK is installed through javascript

The topic-title speaks for itself. Is it possible to check if the client has JDK installed trough javascript? I know that it is possible to check the os and the browser but is that possible too?

like image 216
Brecht Billiet Avatar asked May 17 '26 23:05

Brecht Billiet


1 Answers

You can check whether the client has java enabled with window.navigator.javaEnabled().

Note that:

The return value for this method indicates whether the preference that controls Java is on or off - not whether the browser offers Java support in general.

For more information, have a look at https://developer.mozilla.org/en/DOM/window.navigator.javaEnabled

like image 196
Niklas Avatar answered May 19 '26 13:05

Niklas