SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: Form Javascript Question
-
Nov 6, 2000, 10:47 #1
- 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.
-
Nov 6, 2000, 14:25 #2
-
Nov 6, 2000, 15:17 #3
- 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.
-
Nov 6, 2000, 17:29 #4
- Join Date
- Feb 2000
- Location
- Miches, DR.
- Posts
- 90
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks a lot, dudes...
back to work!
Bookmarks