I need to parse the given urls via Javascript but I\'m not able to use .split() to accomplish to this.
IE:
var str = window.location.pathname; var su
if jquery is an option, try the https://github.com/allmarkedup/jQuery-URL-Parser example
var url = $.url('"http://mydomain.com/myaddress/page/2/#lookforme'); alert(url.attr('fragment'));