[Javascript] IE onclick problem
Claude Schneegans
schneegans at internetique.com
Wed Apr 16 08:41:32 CDT 2008
>>What does the "return" statement stand for?
If the function returns false, the event will be canceled.
Use it for instance in a submit button for some validation function.
If validation fails, return false, and the submit is canceled.
In the previous example, the link to the top of the current page will be
canceled,
so the scrolled position won't change.
More information about the Javascript
mailing list