Click to See Complete Forum and Search --> : redirection of html pages


html20009876
09-19-2005, 08:27 AM
I have a html page (applet.html), on which a java APPLET is displayed.
if visitor can not view the applet properly, i hope to redirect the page to another html page (com.html).

com.html contains a Visual C++ COM.
if visitor can not view the COM, i hope to redirect the page to another html page (normal.html).

total 2 steps, do you know how to do all or any of them?

thanks

Kravvitz
09-19-2005, 04:55 PM
JavaScript might be able to do that.

I don't ever use Java Applets, so I'm not sure.

JustValerie
09-20-2005, 05:15 AM
Is this what you mean:
if (navigator.javaEnabled())
window.location = "goodjavapage.html";
else
window.location = "otherpage.html";

JustValerie (http://www.justvalerie.com)