Note: Read and write property. Specifies the URL domain name. Syntax: document.getElementById("elementID").hostname = value document.all.elementID.hostname = value // IE only location.hostname = value