SyntaxFix
Write A Post
Hire A Developer
Questions
I had the URL from run time, below gave the correct answer:
let url = "www.site.com/index.php#hello"; alert(url.split('#')[1]);
hope this helps