SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast Morpheos's Avatar
    Join Date
    Feb 2000
    Location
    Miches, DR.
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rather embarassing it is for me to ask the following question, since i have been doing forms and javascript for a long time. But here it is:

    I need a Javascript command that closes the window after the user submits the from data?

    The User hits Submit and the Window closes.

    Anybody?

    Thanks for the help.
    Morpheos - Media Design/Motion
    Creative Kingdom
    morpheos@creative-k.com

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    In the form tag put "OnSubmit="window.close";
    Wayne Luke
    ------------


  3. #3
    SitePoint Addict
    Join Date
    Oct 2000
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The syntax above is slightly off.

    In brief,

    <form OnSubmit="window.close();">
    .
    .
    .
    </form>

    is correct.


    OnSubmit="self.close();" is likewise acceptable.


  4. #4
    SitePoint Enthusiast Morpheos's Avatar
    Join Date
    Feb 2000
    Location
    Miches, DR.
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot, dudes...

    back to work!

    Morpheos - Media Design/Motion
    Creative Kingdom
    morpheos@creative-k.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •