HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by rmanalan | Hacker News Reader
Parent
Full thread
rmanalan
·
Using a DOM element is the most efficient way to do this.
View on HN
fabrice_d
·
I would rather use the URL() api :
https://developer.mozilla.org/en-US/docs/Web/API/URL
Elizzy
·
Absolutely no IE support though.
Reply on news.ycombinator.com