I am trying to get the string available after #
in the URL.
basically its an ID of the element that is passed from other page.
for example, the below url has investors_brand after #
character, i need to get that string with jquery
www.example.com/about_us#company_branding
here is the code.
var a = window.location.href;
console.log(a.slice('#'));
But could not get it right.