Combining Two JavaScripts

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

 Date:  Tue, 22 Aug 2000 11:53:20 +1000
 To:  "HWG-Techniques" <hwg-techniques(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-techniques mailing list archives, maintained by Webmasters @ IWA