redirecting without JavaScript

by "Ann Ezzell" <amcbainezzell(at)alum.mit.edu>

 Date:  Wed, 5 Jan 2000 09:43:12 -0700
 To:  <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
First, thanks to everyone who responded about those "broken" graphics
in Netscape. It's looking like we have server issues, actually, but it
was nice to be able to eliminate some causes.

Now I have another question (raised by a response from SDJThorin,
actually -- thanks!).

The site, as I said, only supports version 4 and higher browsers. The
redirection is handled by JavaScript on the index.html page:

<script language="JavaScript">
<!--
imalive=true;
function gb() {
  if((navigator.appName == "Netscape" &&
parseInt(navigator.appVersion)>3) || (navigator.appName == "Microsoft
Internet Explorer" && parseInt(navigator.appVersion)>3))  return true;
    return false; }
if (gb())
  self.window.location='main.asp';
else {
  self.window.location='sorry.html';
}
// done hiding-->
</script>

Unfortunately, if a user goes to the site with JavaScript turned off,
all he/she sees is a blank page. Urk.

I tried putting a message on the index page, but it displays briefly
before the redirect, and I don't want that. What I really want is to
be able to redirect without using JavaScript.

Any suggestions?

Thanks.

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA