Close browser window on submit...?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Webley
    New Member
    • Oct 2006
    • 2

    Close browser window on submit...?

    Hello all...first time here...hope you can help me!

    I'm trying to get the original popup window to close on submit. Because there are actually 4 form tags on this page, I'm not sure if that's creating the issue, but I can't for the life of me find a piece of code that will close this window. I've tried window.close(); and javascript:wind ow.close() in the onClick event to no avail.

    Here is the URL: http://www.cantatasing ers.org/cantata_test/index.htm

    While I'm at it, I have another question:

    When a user links to this from another link I've created, it opens without all the toolbars, but when I go directly to the URL, I get all the toolbars. Is there a way to clear out the toolbars when we send someone to this link directly (inputting the URL by hand, in other words)?

    Thanks so much!
    Webley
  • Arielle
    New Member
    • Jul 2006
    • 76

    #2
    Try an onSubmit event.

    Up in the form tag..

    <form name="myForm" method="post" target="_blank" onSubmit="windo w.close();">

    It should work then. An alternative is using the <button> tag instead of the <input type="submit"> tag to use the onClick method on the button.
    --------------------------------------------------------

    Comment

    • Webley
      New Member
      • Oct 2006
      • 2

      #3
      Dear Arielle,

      Thanks...I just tried both and nothing worked. Any other ideas?

      I appreciate your help!
      Webley

      Comment

      Working...