Site Overlay

How to get hash with string from URL in jQuery

This is an example of getting hash from current url like https://www.amideveloper.com/#about

jQuery

<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script>			  
$(document).ready(function(){              
   var hash = $(location).attr('hash');				
   alert("Current 'hash' : " + hash);
});
</script>

Stop anchor tag clicking