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
Use window.location.hash, it gives you that portion broken out.
Also, you're trying to "split" on the # character which won't be found in window.location.pathname, only window.location.hash--unless you use window.location and search the entire url.
#
window.location.pathname
window.location.hash
window.location