How to post a form and than close the window?

Z

Zsolt

Hi,

in a small (popup) dialog, when user clicks on a button I would like to post
and submit the form and then close the window (like window.close();). How
can I do that? I need a solution for Internet Explorer and Mozilla.

Zsolt
 
I

Ivo

Zsolt said:
Hi,

in a small (popup) dialog, when user clicks on a button I would like to post
and submit the form and then close the window (like window.close();). How
can I do that? I need a solution for Internet Explorer and Mozilla.
The most reliable way of doing this that I have found was to set up the
receiving script on the server to send
<html><script>self.close<()</script></html>
back to the popup window. No javascript involved.
HTH
Ivo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top