SyntaxFix
Write A Post
Hire A Developer
Questions
You may do it by using following code:
var url = "www.site.com/index.php#hello"; var hash = url.substring(url.indexOf('#')+1); alert(hash);
SEE DEMO