Page 1 of 1

Auto close pop up window

Posted: Mon Oct 08, 2012 4:47 pm
by forgot
Hello.

What should I do for auto close blank pop-up window after execute php procedure in form?

I have button on form and JavaScript for it. In JavaScript I use runIt(pCode); for executing some php code.
Then I press this button some annoying window pop-up in background.
Maybe I must add some code to php procedure?

--
Maxim

Re: Auto close pop up window

Posted: Tue Oct 09, 2012 3:49 am
by admin
Maxim,

at the end of the procedure put..

Code: Select all

print "<html><body  onload='window.close()'></body></html>";
Steven

Re: Auto close pop up window

Posted: Tue Oct 09, 2012 8:46 pm
by forgot
Thank you!!!

Re: Auto close pop up window

Posted: Wed Oct 10, 2012 5:35 am
by admin
.