Question : parse url in JavaScript

I have this in my page:

pageURL = window.location + window.location.hash;

the URL ends up looking like this:

how can I extract the last 4 parts of the URL, so it would be like this:

we're splitting at the # and then splitting each one at the _

Answer : parse url in JavaScript

this javascript will get you all four in one array
var myArray = str.split(/#|_/g);

and this will give that last string
var str="";
document.write( str.substring( str.lastIndexOf("/") + 1));
Random Solutions  
programming4us programming4us