...

View Full Version : Opening multiple windows



cdc08x
10-15-2005, 07:29 AM
Hi all!
I'm trying to create an anchor which opens a new window @ every click for the URI it wants to make the user reach.
The code I made is this:



function openInNew( href )
{ newWindow=window.open( href , "UnEMS" , "screenX=100,screenY=10,height=490,width=740,scrollbars=1" );
newWindow.focus();
}


but it makes the anchor open no more than 1 new window, so if I click again on it, it refreshes always the same new window, doesn't create any new.
How can I modify this behaviour?

Thanx a lot!!

Mr J
10-15-2005, 08:27 AM
Leave out the window name




function openInNew( href )
{ newWindow=window.open( href , "" , "screenX=100,screenY=10,height=490,width=740,scrollbars=1" );
newWindow.focus();
}

cdc08x
10-15-2005, 08:48 AM
Thank You!!!!!!!!!!!!!!!!!!!!!!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum