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

Your email address will not be published. Required fields are marked *