how to find the website domain with .js code example Example: javascript get domain window.location.hostname