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