Created
January 27, 2023 15:25
-
-
Save hayskytech/136b972b7a83b55e523900542ef33696 to your computer and use it in GitHub Desktop.
Prevent form resubmission when page is refreshed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
if ( window.history.replaceState ) { | |
window.history.replaceState( null, null, window.location.href ); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment