<script type="text/javascript">
$(document).ready(function () {
//Check if the current URL contains '#'
if (document.URL.indexOf("#") == -1) {
alert('dfjdkjfkdj');
// Set the URL to whatever it was plus "#".
url = document.URL + "#";
location = "#";
//Reload the page
location.reload(true);
}
});
</script>
Above code is not working. What is the problem?