'hostname' Syntax and Note : hostname « Javascript Properties « JavaScript Reference

'hostname' Syntax and Note

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

    

      
      








Related examples in the same category

1.'hostname' Example
2.'hostname' is applied to