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