wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Problem with onsubmit event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem with onsubmit event" Watch "Problem with onsubmit event" New topic

Problem with onsubmit event

Priya Lavti
Ranch Hand

Joined: Oct 11, 2004
Posts: 41
Hi all,

I am calling a function when submitting a form which returns true or false. I want to submit the form only if the function returns true otherwise nothing is to be done. Please tell me how it can be done.


SCJP 5.0
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
<form name="form1" onsubmit="return YourFunction()">

I agree. Here's the link: http://aspose.com/file-tools
subject: Problem with onsubmit event
Similar Threads
Getting a String from a Javascript function call
Dispatch Action w/ validate()
do i have to submit all the time
input type=image with JS
Remember password without form reload