<form id="formID" action="http://ya.ru"> <input type="submit"> </form> <script> var form = document.getElementById('formID'); form.addEventListener('submit', function(e) { e.preventDefault(); }, false); </script>