Prevent page from Submit on Refresh in PHP

[dm_code_snippet background=”yes” background-mobile=”yes” bg-color=”#abb8c3″ theme=”dark” language=”html” wrapped=”no”]

<script src=”https://code.jquery.com/jquery-3.4.1.js”></script>

<script type=”text/javascript”>
$(document).ready(function () {
if( window.history.replaceState ){

window.history.replaceState( null, null, window.location.href );

}

});
</script>

[/dm_code_snippet]

Leave a Reply

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