Prevent form resubmission when page is refreshed – JS

if ( window.history.replaceState ) { //prevent form resubmission when page is refreshed - JavaScript
 window.history.replaceState( null, null, window.location.href );
}

Leave a Reply