Skip to content

Instantly share code, notes, and snippets.

@bytefade
Created September 1, 2015 19:00
Show Gist options
  • Save bytefade/66610b1afa68c0e6d40f to your computer and use it in GitHub Desktop.
Save bytefade/66610b1afa68c0e6d40f to your computer and use it in GitHub Desktop.
location.object.js
console.log(
'hash' + location.hash + ' === '
+ 'host' + location.host + ' === '
+ 'hostname' + location.hostname + ' === '
+ 'href' + location.href + ' === '
+ 'origin' + location.origin + ' === '
+ 'pathname' + location.pathname + ' === '
+ 'port' + location.port + ' === '
+ 'protocol' + location.protocol + ' === '
+ 'search' + location.search);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment