Answers for "form a href prevent form submit"

PHP
0

prevent button from submitting form

function myFunc(e){
       e.preventDefault();
}
Posted by: Guest on June-24-2020
0

prevent re submit form

<script>
    if ( window.history.replaceState ) {
        window.history.replaceState( null, null, window.location.href );
    }
</script>
Posted by: Guest on January-05-2021

Browse Popular Code Answers by Language