HTML-Code: <button onclick="foo_function(); return false;">Doh!</button> Durch return false wird das Event "Button wird/wurde gedrückt" abgebrochen, somit sendet der Browser das Formular nicht ab.
<button onclick="foo_function(); return false;">Doh!</button>
Foren-Regeln