homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Activating Links
Click on the First link, Activates the Second.

10+ Year Member

Msg#: 2524 posted 4:02 pm on Oct 11, 2004 (gmt 0)

How do I make it so when a user clicks on a link and activates a second one?

Can anyone give me the HTML code for that, thnxz.



10+ Year Member

Msg#: 2524 posted 5:38 pm on Oct 12, 2004 (gmt 0)

you can use something like the example below, opens a new window with javascript to one webpage, whilst opening a "text link" to another (you can change most of the variables replace yes with no)

<a onClick="NewWindow=window.open('http://www.google.com','NewWindow','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=500,height=500,top=,left=');" style="text-decoration: none" href="http://www.yahoo.com">Open two pages with one click - Google and Yahoo</a>

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved