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 substr = str.split('/');
alert(substr)
If i enter this url "http://mydomain.com/myaddress/page/2/" I have thoose values "myaddress,page,2"
But it doesn't work if instead of / I insert #