How about: window.location.hostname. The location object actually has a number of attributes referring to different parts of the URL.
確定! 回上一頁