prevent form submit on page refresh php\
//Using Javascript
<script>
if ( window.history.replaceState ) {
window.history.replaceState( null, null, window.location.href );
}
</script>
4.14
7
// add this code to javascript
<script>
if ( window.history.replaceState ) {
window.history.replaceState( null, null, window.location.href );
}
</script>
Thank you!
7
0
Are there any code examples left?
New code examples in category PHP