468,301 Members | 1,478 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,301 developers. It's quick & easy.

query regarding anchor tag

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
6 1214
harshmaul
490 Expert 256MB
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
490 Expert 256MB
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
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
490 Expert 256MB
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
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
490 Expert 256MB
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.

Similar topics

1 post views Thread by knoak | last post: by
6 posts views Thread by Daniele Baroncelli | last post: by
5 posts views Thread by elsenraat_76 | last post: by
12 posts views Thread by jason ji | last post: by
7 posts views Thread by stig | last post: by
10 posts views Thread by elibol | last post: by
3 posts views Thread by rudranee | last post: by
3 posts views Thread by pbd22 | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.