471,859 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,859 software developers and data experts.

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
<input type=submit value="ReFORM&trade;">
May 24 '07 #1
2 4548
1,208 Expert 1GB
<form onbeforesubmit="alert('test');">
May 24 '07 #2
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
reply views Thread by NeoPa | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.