473,586 Members | 2,495 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript onsubmit() doesn't fire WTF?

1 New Member
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="javas cript:window.al ert('test');" action="http://www.botworks.co m/local/BWIForm.pl" target=_blank name="BWIForm" >
<input type=hidden name="BWI_last_ mode" value="review">
<input type=hidden name="BWI_actio n" value="Search">
<select name="BWI_table _name">
<option value="book">bo ok
<option value="Content" >Content
... lots more options here...
<option value="UserClas s">UserClass
<option value="Voluntee rProfile">Volun teerProfile
<input type=submit value="ReFORM&t rade;">
May 24 '07 #1
2 4607
1,208 Recognized Expert Top Contributor
<form onbeforesubmit= "alert('test'); ">
May 24 '07 #2
16,027 Recognized Expert Moderator MVP
<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

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" value="FINISH"/> <b>Click the FINISH button when work instruction is complete.</b> </form> and here is my CheckInput script:
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. <HTML>
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 the validators. The user enters the data, presses OK. My OK button is dynamically generated as well, with some code-behind logic in
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 selects a value, the codebehind event fires, but if the value is changed via javascript, it doesnt. I tried __doPostBack, but it posts entire form back...
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 service project. Is there not poissbile to get to Application_error in global.aspx.cs from an asmx file? Thanks
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 a local server. But after deploying the Submit button event of search request page doesnt get fired on the server, at the same time the login...
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 Application_Start event doesnt fire, it skips it and goes directly to my default.aspx file. I do the following: 1. IISReset.
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() { alert('hi'); return false; }
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 preProcessForm() {
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.