Answers for "prevent form submit on page refresh php\"

PHP
1

prevent form submit on page refresh php\

//Using Javascript
<script>
if ( window.history.replaceState ) {
        window.history.replaceState( null, null, window.location.href );
    }
</script>
Posted by: Guest on September-03-2020
1

php do not refresh page after submit post

// add this code to javascript
<script>
    if ( window.history.replaceState ) {
        window.history.replaceState( null, null, window.location.href );
    }
</script>
Posted by: Guest on January-25-2021

Code answers related to "prevent form submit on page refresh php\"

Browse Popular Code Answers by Language