javascript prevent form submit
snippet in html

js stop form submit

user6653

<button type="submit" onclick="submitButtonClick(event)">Submit</button>
<script>
function submitButtonClick(event) {
		event.preventDefault();
		//other stuff you want to do instead...
} 
</script>

javascript prevent form submit

user9249

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