Re: Calling two frame pages with one click?

by 2Nerotik <2nerotik(at)nisa.net>

 Date:  Thu, 13 Jan 2000 17:37:49 -0800
 To:  hwg-techniques(at)hwg.org
 In-Reply-To:  net
  todo: View Thread, Original
Not sure what you meant by "*without* the use of any form of script bar 
HTML 4.0"

Now do you mean without any JavaScript ? If so then I don't believe it is 
possible but
the following JS will do what you want.

Well it took me a little while but I finally figured it out... I used to 
use this
on my old site but the script long since disappeared but I was able to
reconstruct it with a little trial and error.

<Script language="JavaScript">
<!--
function LoadPages() {
parent.Content.document.location="Test2.html"
parent.Menu.document.location="Test1.html"
}
//-->
</SCRIPT>

<BODY>
<A HREF="javascript:LoadPages();">load Pages</A>
</BODY>

Where Content and Menu are the frames you are targeting. You will of course
need a separate function for each link where you want to load more than one
page.

At 05:59 PM 13/01/2000 +0000, Roger Stenning wrote:
>Hi.
>
>I'm sure that this has been asked before, but can't recall the answer.
>
>I'm re-launching my hobby site in a month or so, and, central to this, I'd
>like to be able to change both the main and menu parts of a frameset with a
>single click (menu calls a sub-site within the same frameset), *without* the
>use of any form of scripting bar HTML4.
>
>While I'm not at all sure it's possible, has anyone managed to solve this?
>
>Thanks in advance.

.oOo.
|| I'm not schizophrenic. You only think we are.
||
||  Addicted 2 Swing ---> http://www.nisa.net/~2nerotik/
||  Fontaholic ? ---> http://www.fontsanon.com
||  HTML Writers Guild ---> http://www.hwg.org

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