Y
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
fabrice_d
3398 days ago
I would rather use the URL() api :
https://developer.mozilla.org/en-US/docs/Web/API/URL
link
Elizzy
3398 days ago
Absolutely no IE support though.
link