how to get the domain site in js code example Example: get domain name javascript window.location.hostname