469,314 Members | 2,194 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,314 developers. It's quick & easy.

Javascript onsubmit() doesn't fire WTF?

I was kind of expecting to see a "test" message pop up when I clicked the submit button, but NNNNOOOOOOOOOOO! wtf gives?

<form method="post" onsubmit="javascript:window.alert('test');" action="http://www.botworks.com/local/BWIForm.pl" target=_blank name="BWIForm" >
<input type=hidden name="BWI_last_mode" value="review">
<input type=hidden name="BWI_action" value="Search">
<select name="BWI_table_name">
<option value="book">book
<option value="Content">Content
... lots more options here...
<option value="UserClass">UserClass
<option value="VolunteerProfile">VolunteerProfile
</select>
<input type=submit value="ReFORM&trade;">
</form>
May 24 '07 #1
2 4471
iam_clint
1,208 Expert 1GB
<form onbeforesubmit="alert('test');">
May 24 '07 #2
acoder
16,027 Expert Mod 8TB
<form onbeforesubmit="alert('test');">
Does onbeforesubmit exist? Or is it IE only?

I think the onsubmit is fine too.
Expand|Select|Wrap|Line Numbers
  1. <form ... onsubmit="return test()">
and test() would contain alert, etc.
May 25 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by KathyB | last post: by
3 posts views Thread by Liquidchild | last post: by
reply views Thread by Ralfie | last post: by
1 post views Thread by =?Utf-8?B?U3Bhcmt5IDcxNzc=?= | last post: by
4 posts views Thread by gamesforums | last post: by
2 posts views Thread by trpost | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.