Is there a php function that will close the current window?
I would like to window to be closed after user upload the file but i dont want to use button with JavaScript for it, did anyone had a same problem?
thanks.
how to close window without JabbaScript
Moderator: General Moderators
Code: Select all
<a onClick="window.close();" href="#">Close Window</a>- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: how to close window without JabbaScript
PHP is a server-side application. Closing windows always takes place on the client-side. JavaScript is client side technology, so you really should look into that.Milan wrote:Is there a php function that will close the current window?
I would like to window to be closed after user upload the file but i dont want to use button with JavaScript for it, did anyone had a same problem?
thanks.
Re: how to close window without JabbaScript
All makes sense now, thanks a lot to both of you.Everah wrote:PHP is a server-side application. Closing windows always takes place on the client-side. JavaScript is client side technology, so you really should look into that.Milan wrote:Is there a php function that will close the current window?
I would like to window to be closed after user upload the file but i dont want to use button with JavaScript for it, did anyone had a same problem?
thanks.