Click to See Complete Forum and Search --> : Question about popup windows


Reyngel
01-23-2003, 08:44 PM
Hi. I have a link, that when clicked on presents a popup window via this code:

onclick="window.open(this.href, 'child', 'width=503,height=650'); return false"

...where a window of 503 X 650 opens with the specified page. But my problem is, unless I close this new popup window, every popup window comman will continue to load in the original 503 X 650 window, rather than opening its own window. How can I solve this?

Zach Elfers
01-23-2003, 09:04 PM
Try naming the window like this: <a href="" onClick="newWin1 = window.open(blah);">Text</a>

Charles
01-23-2003, 09:05 PM
Use different names for that second parameter - id est:

onclick="window.open(this.href, 'fee', 'width=503,height=650'); return false"

onclick="window.open(this.href, 'fie', 'width=503,height=650'); return false"

onclick="window.open(this.href, 'foe', 'width=503,height=650'); return false"

onclick="window.open(this.href, 'fum', 'width=503,height=650'); return false"

Reyngel
01-23-2003, 09:08 PM
Originally posted by Charles
Use different names for that second parameter - id est:

onclick="window.open(this.href, 'fee', 'width=503,height=650'); return false"

onclick="window.open(this.href, 'fie', 'width=503,height=650'); return false"

onclick="window.open(this.href, 'foe', 'width=503,height=650'); return false"

onclick="window.open(this.href, 'fum', 'width=503,height=650'); return false"

Thanks again. :D