Forum Moderators: open

Message Too Old, No Replies

one link, two location?

can i let an anchor actually link to two locations?

         

mylungsarempty

5:43 pm on Jan 4, 2004 (gmt 0)

10+ Year Member



I am trying to figure a way to let one link open two different pages, one in each inline frame. I am sure there is a method for doing this, i'm just not sure about it. how does one use javascript to open a location in the first place?

dmorison

5:52 pm on Jan 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




<a href='javascript:frame1.src="page1.html";frame2.src="page2.html";'>Click here!</a>

Replace frame1 and frame2 with the actual name given to the IFRAME you wish to target (in the name="" attribute) and of course page1.html and page2.html with the pages you wish to load.

/off top of head guess