Jump to content

how to open 2 pages in one click


home123

Recommended Posts

hii wanted to know how can i make a hyperlink that by pressing it i can open 2 new windows with diffrint contentand how do i make one to change two diffrent frames in one page.if you can please write me a simple example from the begining to the endthank you

Link to comment
Share on other sites

what about the first question?
You might try using the onclick event of the link to call a function which has two window.open calls in it:
function OpenThem(firstUrl, secondUrl){	window.open(firstUrl);	window.open(secondUrl);}

<a href="#" onclick="OpenThem('http://www.mysite.com/page1.html','http://www.mysite.com/page2.html');">Do it</a>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...