PDA

View Full Version : pop ups and frames (2 win opening)


1stMoogwai
05-27-2003, 12:11 AM
Hello. I have a frameset. Standard, header, nav and content. From the nav frame I have a popup signin form. It is opening alright, but there is a second (blank) window opening with it. I've tried return false and void(0). Doesn't work. Here is my link on the nav page :

<A HREF="JavaScript:window.open('signup.html', 'popup', 'width=520, scrollbars=yes');void(0);">

Is there a fix to this, without calling the function from the parent frame? I've tried putting the function in the parent frame and using this :

<A HREF="JavaScript:singup();">

This is not working either. Keeps opening up a page with "JavaScript:singup();" in the address bar.

Any help would be greatly appreciated.
Thanks,
1M.

glenngv
05-27-2003, 04:05 AM
<A HREF="JavaScript:void window.open('signup.html', 'popup', 'width=520, scrollbars=yes');">

or better: (this degrades well if javascript is disabled)

<A HREF="signup.html" target="popup" onclick="window.open(this.href, this.target, 'width=520, scrollbars=yes');return false;">