PDA

View Full Version : Javascript Multiple Popup



dmassive
March 17th, 2006, 12:24 PM
Hello people!

I have a problem when I open popups windows using javascript.

I'm using this to open popups:


window.open(pagina, id, "toolbar=yes,menubar=yes,location=no,scrollbars=yes ,resizable=yes,width=800,height=600,top=0,left=0");


The problem is that all the new windows will be open in the same popup :(
and what I want is to open different popups.

Any suggestions? Thanks.

rufusW
March 17th, 2006, 12:50 PM
You need to specify a unique window name (id in your script). This is the reference to your window, so if you use the same id it will load into the same window and if you use a different id it will launch a new window.

dmassive
March 17th, 2006, 01:00 PM
got it!... thanks.