Opening New Window

liunx

Guest
How can i open two link with a single click ???<br />
<br />
eg<br />
i would like to open <!-- m --><a class="postlink" href="http://www.google.com">http://www.google.com</a><!-- m --> and <!-- m --><a class="postlink" href="http://www.yahoo.com">http://www.yahoo.com</a><!-- m --> in a new window.<br />
<br />
Usually when i use<br />
<a href=http://www.htmlforums.com/archive/index.php/"http://www.yahoo.com">Address</a><br />
it open only one window.<br />
<br />
How can i make that when i click on the word "Address", the google and yahoo website will open at the same time ??<!--content-->Can't be done with plain HTML, but using javascript it's possible. Use this to open two new windows, one with google, the other with yahoo.<br />
<a href=http://www.htmlforums.com/archive/index.php/"javascript:void(0)" onClick="window.open().location.href='http://www.google.com';window.open().location.href='http://www.yahoo.com'">Address</a><br />
Just remember to change java script to javascript - the forum separates them.<!--content--><a href=http://www.htmlforums.com/archive/index.php/"www.yahoo.com/" onclick="self.location.href='www.google.com/'" target="_new">Address</a><br />
<br />
Yahoo will open in the new window (target="_new" rules) and the web pages own url opens the google page.<!--content-->you can also just do<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"www.yahoo.com" target="_blank">Yahoo</a><!--content-->
 
Back
Top