URL.hostname Property
Name
URL.hostname Property---the hostname portion of a URL
Navigator 2.0, Internet Explorer 3.0
hostname is a read/write string property of the URL
object. It specifies the hostname portion of a URL. For example, the
hostname of the following (fictitious) location is
"www.ora.com".
http://www.ora.com:1234/catalog/search.html?JavaScript#result
file: /Techref/language/JAVA/script/definitive/refp_421.htm,
4KB, , updated: 2019年10月14日 16:00, local time: 2025年9月20日 13:18,
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Questions?<A HREF="http://techref.massmind.org/techref/language/JAVA/script/definitive/refp_421.htm"> [Chapter 21] Reference: URL.hostname</A>
Did you find what you needed?
Welcome to massmind.org!
Welcome to techref.massmind.org!
.