EchoEcho.Com Homepage
Web Hosting - As Reliable As It Gets!
   Home > References > JavaScript > window.location Object


 Tutorials 
 D-Zine Articles 
 Online Tools 
 Free Resources 
 References 
 Quiz 
 Hosting 

















  JavaScript Objects :
WINDOW.LOCATION








The window.location object contains information on the current URL.

The location object represents the complete URL associated with a given window object. Each property of the location object represents a different portion of the URL.




OBJECTEXPLANATIONDEF
hashSpecifies an anchor name in the URL.NS2+
hostSpecifies the host and domain name, or IP address, of a network host.NS2+
hostnameSpecifies the host:port portion of the URL.NS2+
hrefSpecifies the entire URL.NS2+
pathnameSpecifies the URL path portion of the URL.NS2+
portSpecifies the communications port that the server uses.NS2+
protocolSpecifies the beginning of the URL, including the colon.NS2+
searchSpecifies a query.NS2+
reloadForces a reload of the window's current document.NS3+
replaceLoads the specified URL over the current history entryNS3+

Note:
DEF indicates which version of Netscape browser introduced the object. You can click the DEF link to get the complete object documentation provided by DevEdge.
















DEVELOPER TIP!
FACT:
It takes about half a second for a server to respond to a request sent via the internet.
TIP:
If your page has 10 very small images - each with a size of 100 bytes - it will take longer to load than had it been a continuous stream of 1000 bytes.





     "Better Than Books - As Easy As It Gets!"


On EchoEcho: D-Zine Articles | Tutorials | Online Tools | Free Resources | References | Quiz | HostingAbout EchoEcho