Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening Two Pages in different frames....at the same time

Status
Not open for further replies.

SteveAudus

Technical User
Oct 4, 2001
409
GB
I'd like to open two pages in different frames from one link.
I know it's easily done with Javascript code like below...

Function change()
{parent.left_frame.location="apage1.htm";
parent.right_frame.location="apage2.htm";}

<A HREF=&quot;java script:change()&quot;>Change 2 Frames</A>

The problem is that the link is part of a very complicated javascript dhtml menu, and the links can only only be html, not javascript.

Any suggestions?

I was thinking that maybe I could open one page in one frame, then get that page to open the second page, in the other frame. I have messed with a <meta refresh> and <Body onload> but either could work with target frames, or I just could be using them wrong.

Any help would be great.

Thank you.

 
Uncomplicate your DHTML menu. I work with different flavours of DHTML menu all the time, they all accept javascript links as menu items.
 
It's hard to say for sure, since it's a commercial implementation, but:

Try creating a new menu item, and for the URL field - where you would normally enter say &quot; enter &quot;javascript:alert('boo')&quot; instead.

Are you stuck with that implementation? There are plenty of free DHTML menu scripts out there that offer JavaScript menu items.
 
Thanks for the help,

javascript:alert('boo') didn't work.

If you'd like to have a look at what I'm working on
visit.

I'm not stuck with that implementation, it's just I have used it very successfully in the past, and haven't found a better alternative. I have never had any problems until I found this limitation.

Thanks again for your help,
any other suggestions?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top