Yes, window.location.hostname will give you subdomains as well. If this isn't working, or isn't supported by some other browser, ...
確定! 回上一頁