Hi, Does anyone know of a way in php to close the browser window
Really appreciate some help
Regards
Ray
close browser in php
hi,
closing the browser is a client side job, and php is server side. so no direct way by which php can close the browser window. what can be done is make php spit out javascript code that can do the job
someting like:
echo "<script>window.close</script>";
steve
thanks Steve I'll give it a go
Regards
Ray
The script steve has given will work but...
The command will bring up a dialog box asking the user if they want to close the window. This can only be avoided if the window was opened with the window.open command in the first place and the parent window is still open.
Hope This is some help to you