|Java menu knowledge base|
How to cater for non-java browsers
It's not a good idea to put up buttons saying "click here for the java version" - in the first
is uncool; secondly, site visitors often click on the wrong buttons anyway; and finally, it tells everyone
you can't do auto-detection scripts.
Anyone can programme an easy little sequence of automatically loading pages that check
for java without the site visitor having to click anything.
This is a great
little trick which absolutely everyone who uses java should use on their websites.
browser also stays with the first page.
(page2.htm) loads automatically.
Code for page1.htm:
if (navigator.javaEnabled()) top.location = "page2.htm"
<P>[Insert your non-java page code here]
Page2.htm is, of course, the page where you put your java.
The above code is the slickest way of doing it. But you should also
be aware that any HTML code between the applet tags will be displayed
in non-java browsers, but not in java browsers. So you could also
do it with just one page like this:
[Insert applet parameters here]
[Insert text for non-java browsers here]