Prevent form resubmission when page is refreshed

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

Leave a Reply

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