By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,057 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,057 IT Pros & Developers. It's quick & easy.

query regarding anchor tag

P: 79
hi,
Is it possible using anchor tag (no button) to open two links by clicking on one link, for example I clicked a link and simultaneously two pages get opened.
Feb 14 '08 #1
Share this Question
Share on Google+
6 Replies


harshmaul
Expert 100+
P: 490
Hi,

What your going to have to do is make a link to another page.
And then on that page put javascript to open up a new link.

But i'm not to sure that this can be done with html alone.
Feb 14 '08 #2

harshmaul
Expert 100+
P: 490
hi again.
justr had a quick play around....

try this


Expand|Select|Wrap|Line Numbers
  1. <a href="http://www.google.com" target="_blank" onClick="window.location.href='http://www.yahoo.com">choose your search engine</a>
Feb 14 '08 #3

P: 79
But the pags may change , i cannot put javascripts on that page.
Hi,

What your going to have to do is make a link to another page.
And then on that page put javascript to open up a new link.

But i'm not to sure that this can be done with html alone.
Feb 14 '08 #4

harshmaul
Expert 100+
P: 490
hi. i spent time on it just now....

insert this insted of the hyperlink you put in there...


Expand|Select|Wrap|Line Numbers
  1. <a href="http://www.google.com" target="_blank" onClick="window.open('http://www.yahoo.com/','mywindow','width=400,height=400')">choose a site</a>
Feb 14 '08 #5

P: 79
thnx buddy its working fine :-)
hi. i spent time on it just now....

insert this insted of the hyperlink you put in there...


Expand|Select|Wrap|Line Numbers
  1. <a href="http://www.google.com" target="_blank" onClick="window.open('http://www.yahoo.com/','mywindow','width=400,height=400')">choose a site</a>
Feb 15 '08 #6

harshmaul
Expert 100+
P: 490
No worries. I'm here to help!
Feb 15 '08 #7

Post your reply

Sign in to post your reply or Sign up for a free account.