How to post a form and than close the window?

Discussion in 'Javascript' started by Zsolt, Feb 23, 2004.

  1. Zsolt

    Zsolt Guest

    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
     
    Zsolt, Feb 23, 2004
    #1
    1. Advertising

  2. Zsolt

    Ivo Guest

    "Zsolt" <> wrote in message
    news:c1dekm$hcn$06$-online.com...
    > 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
     
    Ivo, Feb 24, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt
    Replies:
    1
    Views:
    3,167
    Whitecrest
    Jun 1, 2004
  2. Iñaki Baz Castillo
    Replies:
    7
    Views:
    894
    Iñaki Baz Castillo
    Jan 12, 2010
  3. Matt
    Replies:
    0
    Views:
    224
  4. Shang Wenbin

    close current window using window.close()

    Shang Wenbin, Sep 1, 2005, in forum: Javascript
    Replies:
    10
    Views:
    395
    Gérard Talbot
    Sep 2, 2005
  5. Iulian Ilea
    Replies:
    1
    Views:
    326
    pcx99
    Dec 21, 2006
Loading...

Share This Page