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



<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...
developercode
About the Author
Sayyad is a Software Engineer, Blogger and Founder of Developers Code from India.His articles mainly focus on .Net (Web and Windows based applications), Mobile Technologies (Android,IPhone,BlackBerry) and SEO.

Tanisha Sayyad

is a Software Engineer, Blogger and Founder of Developers Code from India.His articles mainly focus on .Net (Web and Windows based applications), Mobile Technologies (Android,IPhone,BlackBerry) and SEO.

2 comments:

 

Copyright @ 2013 Developers Code.

&