34,333
edits
Changes
→Extracting Parts of the URL
* '''location.port''' - the HTTP Port number of the URL (for example 80)
* '''location.search''' - the search portionm portion of the URL (batch=1 in the example above)
* '''location.hash''' - the anchor name in the URL (#intro in our example)