...

View Full Version : How do I open three separate new windows?



Luis
06-02-2003, 07:19 PM
Hi, this is my first posting...

I would like to open three different windows with
different sizes, but all the links always open to only
one window....the copyright window.

the code I am using in my last link is the following:

<Script Language="JavaScript">
<!-- Hide from old browsers
function openwindowlink() {newwin = window.open("http://www.promotion-des-sites-internet.com/copyright.html","windowname",
"height=200,width=700,scrollbars,resizable");("http://www.promotion-des-sites-internet.com/trousse_marketing_internet.html","windowname",
"height=420,width=700,scrollbars,resizable");("http://www.promotion-des-sites-internet.com/telechargement.html","windowname",
"height=420,width=700,scrollbars,resizable")}
// end hiding --></Script>
<a href="JavaScript: openwindowlink()">Copyright &copy;</a>

On the other links, I have tried to rotate the order of the
functions in the script, but i continue to open only the copyright window.

What do I need to do so that I can open the right window for
each link.

Thank you,
Luis

Garadon
06-02-2003, 07:29 PM
Like This


<Script Language="JavaScript">
<!-- Hide from old browsers
function openwindowlink()
{
window.open("http://www.promotion-des-sites-internet.com/copyright.html","","height=200,width=700,scrollbars,resizable");
window.open("http://www.promotion-des-sites-internet.com/trousse_marketing_internet.html","","height=420,width=700,scrollbars,resizable");
window.open("http://www.promotion-des-sites-internet.com/telechargement.html","","height=420,width=700,scrollbars,resizable")
}
// end hiding -->
</Script>
<a href="JavaScript: openwindowlink()">Copyright </a>

shlagish
06-02-2003, 08:59 PM
I think the problem is: By naming all the windows 'windowname', once there IS a window called 'windowname' (The first window opened), the two other windows open IN 'windowname'.
You have to name the windows differently (Or not name them at all)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum