Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
rmanalan
· 9y ago · 0 comments
Using a DOM element is the most efficient way to do this.
Comments
[–]
fabrice_d
9y ago
I would rather use the URL() api :
https://developer.mozilla.org/en-US/docs/Web/API/URL
[–]
Elizzy
9y ago
Absolutely no IE support though.