Re: PHP syntax error or javascript mistake?
| From: | Marek Kilimajer | Date: | Wed, 19 Nov 2003 19:40:34 +0000 |
| Subject: | Re: PHP syntax error or javascript mistake? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170343@lists.php.net to get a copy of this message | ||
Kenn Murrah wrote:
I'm trying to open a new window on top of the current window, and it does that, but the "original" (bottom) window changes to read "Object Window" ... I can get back to the original with the "Back" button but of course don't want to ask that of the user ... I simply want a new window to appear on top of the original, after which the user can close the top window and be back where he started .... Oh, here's the code: echo "<a href='javascript:window.open(\"$fg_id\",\"\",\"height=400,width=300,left=80,top=80,scrollbars=1\")'>";Browser follows the link, you need to return false after opening the window: "<a href='javascript:window.open(\"$fg_id\",\"\",\"height=400,width=300,left=80,top=80,scrollbars=1\"); return false;'>"