You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



Location

The Location object is a direct property of the global object. It is retrieved with the GlobalWindowImpl::GetLocation() function, as part of the implementation of the nsIDOMWindowInternal interface. Location is part of the "DOM Level 0". Note that getting the "location" object implicitely maps to its "href" property, which is by far the most used.

Class: LocationImpl

File: dom/src/base/nsLocation.cpp

Doesn't inherit from any class.

Implements the following interfaces:

  • nsIDOMLocation: dom/public/idl/base/nsIDOMLocation.idl
  • nsIDOMNSLocation: dom/public/idl/base/nsIDOMNSLocation.idl