javascript prevent form submit

HTML
<form name="foo" onsubmit="return false">
Source

Also in HTML: