Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











PROPERTY:  Location::hostname


location.hostname
 
hostname is a property of both the Link and the Location objects and specifies the server name, subdomain and domain name (or IP address) of a URL. Assuming your current window to be the URL...
 
http://home.newco.com/products/enquiries.htm#local?email=name@otherco.com
 
...you could find out the hostname property as follows:
 
Code:
document.write(location.hostname)
 
Output:
home.newco.com
 
NOTE:
 
Although the hostname property can be set at any time, it is safer to set the href property to change a location.

 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information