Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why won't this fire?

Status
Not open for further replies.

bigracefan

Programmer
Apr 2, 2002
304
US
Newby question: I have the following code trying to fire a javascript routine. It works on my button click but it doesn't work on the form post.
Code:
<form action="frmReinstate.asp" method="post" name="ReinstateForm" onSubmit="Validate()" >
What am I missing. I'm trying to do a "Are you sure?" after they press the button.
 
A better place for this question is the JavaScript forum (link: forum216) because this code runs in the browser, not on the server, so it isn't really ASP code even if it is in a page with a .asp file extension.

That said, have you tried this:
[tt]onSubmit="[red]return[/red] Validate()[red];[/red]" [/tt]


Also you might try FireFox for debugging JavaScript it is much easier than with IE.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top