Vicente Werner wrote:
El Martes, 6 de Abril de 2004 10:13, Burhan Khalid escribió:

You cannot close the window from within PHP. You have to use client side
scripting (Javascript).

I've already tried sending :


<script language="Javascript">
window.close()
</script>

Just after echoing the file, but with 0 success.


Try "onLoad"-event of BODY-tag, i.e. send such HTML to browser:

<html>
<body onLoad="window.close();">
</body>
</html>


Hope that helps.



-- Pavel a.k.a. Papi

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to