How about:
window.location.hostname
The location
object actually has a number of attributes referring to different parts of the URL
How about:
window.location.hostname
The location
object actually has a number of attributes referring to different parts of the URL