javascript how to get document domain code example Example: javascript get domain window.location.hostname