Re: close the new window and auto refresh other window.
| From: | Jay Beaton | Date: | Mon, 26 Jun 2000 20:53:59 +0000 |
| Subject: | Re: close the new window and auto refresh other window. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3199@lists.php.net to get a copy of this message | ||
You'll need to use JavaScript to do this (PHP can't work on the client
side).
In the pop-up window, use this JavaScript code (in an onClick event,
etc.):
window.opener.location="nextURL.html";
window.close();
This will send the window that opened the pop-up window to the page
"nextURL.html" and close itself.
See ya,
JRB
LeagueOffice.com Fantasy Sports
---------------------------------------------------
http://www.leagueoffice.com
as cool as fantasy sports get...
---------------------------------------------------
Mark Lo <markloky@netvigator.com> wrote:
>
> Hi,
>
> I don't know wether it works in PHP. My question is that I
> would like to know how to refresh the orgional window after closing
the
> new windows. (assume a new window is pop up after clicking the button
in
> the origional window, then when I close the new popup window, the
> orgional window will be refreshed automatically.) I don't have any
idea
> of how to do this..even in Javascript...Any suggestion is welcome.
>
> Thanks
>
> Mark
>
--
ls