'hostname' Syntax and Note : hostname « Javascript Properties « JavaScript Reference
- JavaScript Reference
- Javascript Properties
- hostname
'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