site do not refresh when submit php code example
Example: php do not refresh page after submit post
// add this code to javascript
<script>
if ( window.history.replaceState ) {
window.history.replaceState( null, null, window.location.href );
}
</script>