/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var url = window.location.href; var hash = window.location.hash; var index_of_hash = url.indexOf(hash) || url.length; var hashless_url = url.substr(0, index_of_hash);