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