Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q252 How can I safely detect whether the browser has Java enabled?

You are here: irt.org | FAQ | JavaScript | Java | Q252 [ previous next ]

<script language="JavaScript"><!--
if (navigator.appName == 'Microsoft Internet Explorer' && navigator.appVersionindexOf('MSIE 3'))
    var java = false;
else
    var java = navigator.javaEnabled();
//--></script>

Now you have a boolean variable that you can use throughout the rest of your page.

Feedback on 'Q252 How can I safely detect whether the browser has Java enabled?'

©2018 Martin Webb