Forum Moderators: open

Message Too Old, No Replies

Test Browsers for Java Compliance

How?

         

guillermo5000

4:46 am on Jun 12, 2003 (gmt 0)

10+ Year Member



Is it possible to test a browser for Java compliance? I don't really want to send non-compliant browsers to another page, but rather tell visitors that certain things may not function. Thanks.

outrun

7:15 am on Jun 12, 2003 (gmt 0)

10+ Year Member



Its easy using JavaScript to check.

<script language=javascript type='text/javascript'>
if (!navigator.javaEnabled()) {
document.write("You dont have Java enabled");
}
</script>

This wont work if Javascript is off though, But I doubt many people will hava javascript off and Java on. And if they do theyll see the Java applet anyway.

regards,
Mark

guillermo5000

8:29 am on Jun 12, 2003 (gmt 0)

10+ Year Member



Thank you!

I've changed it somewhat to suit my needs. ;-)

<script language=javascript type='text/javascript'>
if (!navigator.javaEnabled()) {
alert("blah blah blah");
}
</script>