aspose file tools*
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem with onsubmit event" Watch "Problem with onsubmit event" New topic
Author

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.

~pinks


-Priya
SCJP 5.0
Eric Pascarello
author
Rancher

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

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with onsubmit event