Link to home
Start Free TrialLog in
Avatar of mctd
mctd

asked on

smooth Cross browser java detection

I know there was a lot of topics about this, but I didn't found any cross browser solution.

I have a java navigation menu for my web site, butt if client doesn't have java enabled / installed, i'd like to redirect him to another page. I found a good solution for netscape (navigator.javaenabled or something...) but what about IE, opéra and such browsers ??

Thanks
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

put the redirect code between the <applet> and </applet> tags

that should work...
Avatar of mctd
mctd

ASKER

already tried, didn't seemed to work (tested in IE6 with all VM checkboxes disabled). Did I miss something ?

I tryied this piece of code:

<applet Code="myApplet.class">
  <script language="JavaScript">
    alert("You do not have Java enabled");
    // some redirect code here
  </script>
</applet>


any other idea ?
Apparently, the javaEnabled method exists in: IE4+, NN3+ and Opera 3.51+

I guess that is the only way to do it...and maybe put a text link to your other menu inside the Applet tag for those browsers that this call fails for (if there are any)...
ASKER CERTIFIED SOLUTION
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
mctd:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept TimYates' comment as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jimmack
EE Cleanup Volunteer