Javascript in a header
| From: | Dan Harrington | Date: | Sat, 14 Apr 2001 16:29:52 +0000 |
| Subject: | Javascript in a header | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48557@lists.php.net to get a copy of this message | ||
Hello,
Am I brain damaged or will something like this work?
header("Location:javascript:window.open('http://login.php?arg1&arg2','','windowname')");
I want to popup a login script in a sub-browser window, and then pass
the results back to the main window. Someone told me that the javascript
in the header would work but so far it won't.
However, that javascript typed into the browser "location" field
does work as I want it to.
ideas?
Thanks
Dan