anchor tag with two href how to
Say I have an anchor tag <a>, with that I should be able to two perform action simultaneously at the same time. How can I do it ?
The Idea behind is that you need to use both href attribute and onclick attribute.
The following script of code will do .
Say I have an anchor tag <a>, with that I should be able to two perform action simultaneously at the same time. How can I do it ?
The Idea behind is that you need to use both href attribute and onclick attribute.
The following script of code will do .
<a href="http://www.microsoft.com"
target="_blank"
onclick="window.open('http://www.google.com'); window.open('http://www.yahoo.com');">Click Here</a>
Solution:
I got this solution from stackoverflow.
http://stackoverflow.com/questions/13965753/how-can-i-open-multiple-links-using-a-single-anchor-tag
No comments:
Post a Comment