The first time I heard of the Clash was in high school. I was working on the school newspaper, and one day a fellow named Dave Vogel came in with a copy of London Calling that he was showing off to anybody who was willing to listen. I thought the cover of the album was really cool, and asked him "is it heavy metal?" He said "no, but it's really great." I doubted him, but asked if I could borrow it, and I made
This file contains hidden or 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
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |