js How to get the domain name from a URL code example Example: get domain name javascript window.location.hostname