▲ How to Parse URL in JavaScript: hostname, pathname, query, hash at dmitripavlutin.com▼1 up and 0 down, posted by panzerdp 1634 days ago 1 comment
tracker1 1632 days ago. link 1 point ▲ ▼Would add that username and password are not automatically decoded, use decodeURIComponent.