Combining two JavaScripts

by "Christie Cooksey" <christie(at)thearmidalemall.com>

 Date:  Mon, 21 Aug 2000 13:49:06 +1000
 To:  "HWG-Languages" <hwg-languages(at)hwg.org>
  todo: View Thread, Original
I'm working on a framed site and using this script (thankyou to the kind
person who posted it) to pop the pages into frames if they are surfed into
from outside the frameset:
<SCRIPT>
if(window==top.window)
  {top.window.location='index.html'}
</SCRIPT>

I'm also using this bit to load a second page into the header frame using
onLoad:
<SCRIPT LANGUAGE="JavaScript">
function heading()
{ parent.header.location.href="heading.html"}
</SCRIPT>

I'm sure I must need to setTimout somehow so the heading function doesn't
kick in right away.  Something like this???
onLoad="window.setTimeout('heading()',3000)"

Cheers  :0)
Christie Cooksey
Websites "Designed by Christie"
http://www.designedbychristie.com

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