Click to See Complete Forum and Search --> : Please help Question about _blank and something else


hazedoutdesi
05-05-2008, 02:34 AM
What im trying to do is this.

Index.html has a link. When someone clicks it a new window will come up with a different page. So what i want to do is make the page that had index.html go to another page when the link is clicked.

so what we have no is 2 pages open and the page that we started with index.html is redirected to another page. and at the same time a new window was open for another page.

Is this possible to do? if so how can i please do it
Will i need to use frames?

Thanks.

If i wasn't clear im sorry please let me know i will explain better.

mastorak
05-05-2008, 04:17 AM
Hi,

If i understand correctly what you want to do you have to put a onclick() event on the link.

The onclick event you will call a javascript function to open the new window :
window.open('www.newwindowurl.com ','new window name')

so your code will look something like:

<a href="http://redirecturlforthesamewindow.com" onclick="window.open('http://newwindowurl.com','newwindowTtitle','width=400,height=200')"">the link text</a>


I hope this helps

hazedoutdesi
05-05-2008, 07:06 PM
thank you!!! it worked good.