• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. location > Description

Description

The location object describes, quite simply, the current document's location on the World Wide Web or the client computer. It includes methods for reloading or replacing a page, and properties for the protocol, server, directories, filename, page target, and query-string.

Internet Explorer and Netscape support it as a property of the document object. While this seems a more logical place for it, Netscape and Internet Explorer support the same object (not a copy of it; the same one) as a property of the window object. I recommend you refer to it as window.location, or just location. Using window.location may solve some problems for setting the location of frames currently displaying a page from another host.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint