Every XML and HTML document in an HTML UA is represented by a Document object. [DOM]
Interactive user agents typically expose the Document object's
  URL in their user interface. This is the primary
  mechanism by which a user can tell if a site is attempting to impersonate another.
 
