John,
one thing you should keep in mind is that search engine spiders won't
follow javascript redirects while most will follow meta tag redirects,
i know google does.
your javascript looks OK yeah, though you're forcing yourself to not
stick double quotes around the onload attribute value because you're
using them in setTimeout argument, which isn't all that pretty,
especially in this day and age where XHTML is king. just keep it clean
and create a function and call it from onload:
somewhere between your <head></head> tags:
<script language="JavaScript" type="text/javascript">
function goNext() {
setTimeout("location.href='catalog.html'",10000);
}
</script>
then your body tag:
<body onload="goNext()">
.....
</body>
but again, i would prefer using the meta tag, in a more xhtml-ish fashion:
<meta http-equiv="Refresh" content="10; URL=http://www.htmlhelp.com/" />
-chris
On Fri, 18 Jun 2004 10:22:36 -0700, John Crockford <email@hidden> wrote:
... [snip] ...
--
Chris Holland
http://chrisholland.blogspot.com/
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.