override kirim tombol javascript

form = document.getElementById("myform")
form.submit = function() {
	// Code here
}
Undefined