Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> JavaScript >> Snippet

Cancel form submission


when an event handler returns 'false' the event is cancelled.

< form onSubmit = "SubmitForm()" >
</ form

< script >
function SubmitForm() {
    return false ;
}