How to open Different pages in single hyper link
Hi Friends.just try this below code for..How to open the different pages in one hyper link
First,write the onclick event in the hyper link
First,write the onclick event in the hyper link
<a href="http://taanu51.blogspot.com" onclick="open_win()" title="Aspnet">Click here For More Sites</a>
Next write the following code in the script tag...Here you can mention number of links as per your requirement<script type='text/javascript'>
function open_win()
{
window.open("http://www.java2s.com")
window.open("http://www.google.com")
}
</script>
That's it...
2 Comments:
Hey Thanks its very easy
Hey Thanks its very easy
Post a Comment
Subscribe to Post Comments [Atom]
<< Home