Getting URL information in javacript

posted in: Uncategorized | 0

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);