[thelist] Stopping a user submitting a form from the address bar using JS.

Danny Goodman dannyg at dannyg.com
Sat Dec 14 14:25:01 CST 2002


The submit() method does not trigger the onsubmit event handler of a form
element (in recent IEs and all NNs), so the URL approach automatically
defeats anything one hopes the event handler will catch.

Server-side validation is essential to maintain the integrity of a database.
Client-side validation is an enhancement to the user experience (like most
scripting/DHTML should be) and can lighten server traffic.

Danny
http://www.dannyg.com

>
> 2.  Check that flag in the onsubmit handler on the form.  If the flag is not
> set, return false.




More information about the thelist mailing list