Click to See Complete Forum and Search --> : One click opens two pages in dif. frames?


svenicsale
06-02-2003, 01:00 PM
I wish to make a link so when it is clicked on it, it will open link1.htm in target="_self", and also another page(link2.htm) in topFrame(for example)..
So what I wish to say is that when someone clicks on a link, it opens two pages at the same(one in "_self" and one in "topFrame")...

Jona
06-02-2003, 01:17 PM
Try this link:


<a href="noFrames.html" onClick="parent.topFrameName.location.href='page1.html';parent.rightFrameName.location.href='page2.html'; return false;">Go there</a>


Jona

svenicsale
06-02-2003, 03:33 PM
Yes, that't the one.... Thank you....
One more question though... Is it possible to putt www.location.com instead of page2.htm or I need to modify the code? Will the webpage(www.location.com) be opened in the frame just like page2.htm does?

Jona
06-02-2003, 03:44 PM
Just change page1.htm to whatever you want--yaho.com, msn.com, whatever. The page1.htm file loads in the top frame. You can do the same with page2.htm, which loads in the right frame.

Jona

spider-man_5001
10-09-2007, 02:58 PM
i need the code to go in a menu frame which is in the bottom left of the site and a main frame that is the bottom right frame