Thursday, February 10, 2011

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.

Labels: , , , , ,

2 Comments:

At March 15, 2011 at 9:25 AM , Blogger Dotnet Tutorials said...

Hey Thanks its very easy

 
At June 28, 2011 at 10:17 AM , Anonymous Dotnet Tutorials said...

Hey Thanks its very easy

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home