Welcome to WebmasterWorld Guest from 18.204.48.199

Forum Moderators: open

Message Too Old, No Replies

one link, two location?

can i let an anchor actually link to two locations?

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

Full Member

10+ Year Member

joined:July 11, 2003
posts:232
votes: 0


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?
5:52 pm on Jan 4, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 3, 2003
posts:1633
votes: 0



<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