Hacker News new | ask | show | jobs
by rmanalan 3398 days ago
Using a DOM element is the most efficient way to do this.
1 comments

I would rather use the URL() api : https://developer.mozilla.org/en-US/docs/Web/API/URL
Absolutely no IE support though.