Javascript

How to remove “#” from URL, after refresh page

Use this Script in your Html.

<script>
window.location.replace(“#”);

// slice off the remaining ‘#’ in HTML5:
if (typeof window.history.replaceState == ‘function’) {
history.replaceState({}, ”, window.location.href.slice(0, -1));
}
</script>

Leave a Reply

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