Getting URL information in javacript

BronwenWeeGo.jpgCouple of handy javascript properties i can never remember off the top of my head to get url and query string data:

To get the anchor position of url:
this.location.hash

To get the query string of the url:
this.location.searchsubstring(1);