PDA

View Full Version : Non-Java re-direct


e-myther
12-14-2002, 02:24 AM
Hi Guys


I have a page (http://www.painting-effects.co.uk/ztutorials.htm) on my website that has a Java Applet on it.

I'd like to make a different page for people who wouldn't see the applet.

Would someone please tell me the code for the re-direct.



<script language="javascript">
<!--
if (?????????){
window.location.replace("non-java-page.htm")
}
//-->
</script>



Many thanks

e-

mordred
12-14-2002, 12:37 PM
if (navigator.javaEnabled()) {
window.location.replace("url.html");
}


Don't rely on that to be 100% foolproof, because the user might have JS disabled and Java enabled.

e-myther
12-15-2002, 11:24 PM
Thanks Mordred.


I'll give it some more thought & maybe do away with the applet completely.


e-

zoobie
12-16-2002, 12:15 AM
98% have js enabled...I wouldn't worry about it. :D

e-myther
12-17-2002, 01:42 AM
98% !!! ?

That's good enough for me.

Cheers Zoobie