473,395 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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
</select>
<input type=submit value="ReFORM&trade;">
</form>
May 24 '07 #1
2 4600
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

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

Similar topics

1
by: KathyB | last post by:
Hi, I have the following submit code: <form name="finish" action="Hidden_Birth2.aspx" method="post" onsubmit="return CheckInput(this);"> <input style="CURSOR: HAND" type="submit" name="finish"...
3
by: Liquidchild | last post by:
Not sure if this is the correct group, but... I have the following jsp page, basically i want to append some text to the username before the form is submitted, is this possible? Thanks S. ...
4
by: usl2222 | last post by:
Hi folks, I appreciate any assistance in the following problem: I have a form with a bunch of dynamic controls on it. All the controls are dynamically generated on a server, including all...
1
by: maheshvd | last post by:
Hi all, If I change the selected value of a dropdown server control on client side, is there any way to force the serverside Selectedindexchanged event? (if the user clicks on the dropdown and...
0
by: Ralfie | last post by:
I have both an web project and an webservice project in my solution. When I recive and errror in my web project my Application_error in global.aspx.cs is fired. This doesnt happend in my web...
1
by: =?Utf-8?B?U3Bhcmt5IDcxNzc=?= | last post by:
Hi, I am facing one deployment issue, I have 3 aspx pages one for Login, other for search request form and the third for displaying the results. After it was working fine locally I deployed it on...
4
by: gamesforums | last post by:
Hi! I have some code within the Application_Start event in Global.asax that runs a sqlscript against my sql server to check the databas version. My problem is that sometimes the...
2
by: trpost | last post by:
I am trying to utilize a form to display a message and not submit when the submit button is clicked, here is an example on what I have done: <script type="text/javascript"> <!-- function tst()...
2
by: bubs81 | last post by:
Hi, Here's the first line of my HTML form... <form target="_self" onsubmit="return preProcessForm();" action="somewhere" method="post"> preProcessForm looks like... function...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.