Get protocol, domain, and port from URL Get protocol, domain, and port from URL javascript javascript