Page 1 of 1

how to close window without JabbaScript

Posted: Mon Jun 19, 2006 4:48 pm
by Milan
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.

Posted: Mon Jun 19, 2006 6:17 pm
by Benjamin

Code: Select all

<a onClick="window.close();" href="#">Close Window</a>
Something like that, just google it. "close window javascript"

Posted: Mon Jun 19, 2006 6:18 pm
by Milan
I dont want to be rude, but did you even read my question?

Re: how to close window without JabbaScript

Posted: Mon Jun 19, 2006 6:19 pm
by RobertGonzalez
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.
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.

Posted: Mon Jun 19, 2006 6:19 pm
by Benjamin
Sorry I saw the Jabbascript part but missed the word without. I think your out of luck.

Re: how to close window without JabbaScript

Posted: Mon Jun 19, 2006 6:23 pm
by Milan
Everah wrote:
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.
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.
All makes sense now, thanks a lot to both of you.