Checking if Java Is Enabled

 

Before you call on Java to enhance your page, you should check to see if the user even has Java-enabled browser.

This script tells you whether the user has a Java-enabled browser.

 

Script Source

 

<Under the body section>

<script language="javascript" type="text/javascript">

<!-- Hide script from old browsers

document.write("Java is ")
if (!navigator.javaEnabled()) {
document.write("not ")
// End hiding from old browsers
// Script by www.wizzardweb.co.uk
// Please do not remove this information -- Copyright 2007
</script>
<noscript>
JavaScript is not enabled!
To view this page we require that you have java enabled.
</noscript>

 

Please let me know if this script was helpful to you.

[rating]