Click to See Complete Forum and Search --> : Open multiple windows


rlewis
04-11-2003, 09:03 AM
How do I get a new specific sized window to open from within the same webpage each time different link is click with out the same popup window displaying the next link clicked. I have 3 links on a page and each one uses a java script to call up a new window to view the page associated with the link clicked on. But instead of getting 3 popup windows I get one popup that changes as each link is clicked. I would like to have 3 different popup windows open at the sametime.

Here is what I have x 3 links to 3 different pages:

{
window.open("http://www.houseofphotography.com/style-file.htm", "House", "history=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,width=5 90,height=400");
}

khalidali63
04-11-2003, 09:39 AM
your code snippet above will open three different widnows if used in this manner

openNewWin(url,winName){
window.open(url,winName,"window sizes here")
}

the important parameter in the above is winNameif that is different each time , a new window will open

Cheers

Khalid

rlewis
04-11-2003, 07:36 PM
Heres what I understood you to say but I can't get it to work. What am I doing wrong.


OpenNewWin("http://www.houseofphotography.com/style-file.htm" ,"winName"{
window.open("http://www.houseofphotography.com/style-file.htm", "House", "history=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,width=5 90,height=400");
}

Jona
04-11-2003, 07:59 PM
function OpenWin(url,winName){
window.open(url,winName);
}

On your links:

<a href="Javascript:OpenWin('file.html','fileName');">File</a>
<a href="Javascript:OpenWin('file2.html','file2Name');">File2</a>
<a href="Javascript:OpenWin('file3.html','file3Name');">File3</a>

That good?