Last active
August 29, 2015 13:59
-
-
Save boldfacedesign/10775868 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Property Description | |
hash Returns anchor portion of the URL, including the leading hash. (“#results”) | |
host Returns the hostname and port (if available) of a URL. (“www.example.com” or “www.example.com:80″) | |
hostname Returns the hostname portion of the URL (“www.example.com”) | |
href Returns the entire URL. (“http://www.example.com:80/example.php?x=1&y=2#results”) | |
pathname Returns the path name of the URL (“/example.php”) | |
port Returns the port portion of the URL (“80″ within the host “www.example.com:80″) | |
protocol Returns the protocol portion of the URL, including the trailing colon (“http:”, “https:”, “ftp”, etc) | |
search Returns the query portion of the URL, including the question mark (“?x=1&y=2″) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment