Click to See Complete Forum and Search --> : open two browser windows with one link, one page in the backgroud


harpman
02-12-2003, 05:35 PM
Does anybody know how to open two web pages or one plus a pop up page with only one link. Also one of these pages has to open behind the other. The point of the funtion is this. The user clicks the link on my site homepage. one of the windows possibily the popup will have my flash site on it ansd the other will be in the background so the user wont see. when the user has finished surfing my site they will probably close the broswer window and low and behold there will be the other pages thanking them for visiting my site.

Has anyone ever heard of a way how to do this. I know how to open a page already with a poup window delay but this is no good as the popup does not open int eh background.

Thanks.

AdamBrill
02-12-2003, 06:47 PM
Try something like this:

<script language=javascript>
function go()
{
win = window.open("http://www.yourdomain.com/thankyou.htm");
win.blur();
win2 = window.open("http://www.yourdomain.com");
}
</script>

Then, call it like this:

<a href="http://www.yourdomain.com" onclick="go(); return false" >The Link</a>


That will popup both pages. If you only want the thank you page to popup, try this:


<script language=javascript>
function go()
{
win = window.open("http://www.yourdomain.com/thankyou.htm");
win.blur();
}
</script>

And then call it like this:


<a href="http://www.yourdomain.com" onclick="go(); return true" >The Link</a>

I hope that helps!

harpman
02-14-2003, 05:06 AM
Thanks Adam, I really appreciate your help. Have a good day!!:)