Mega Code Archive

 
Categories / JavaScript DHTML / Window Browser
 

Methods and Properties of the Location Object

/* +------------+----------------+------------------------------------------+   Type         Item              Description +------------+----------------+------------------------------------------+   Method +------------+----------------+------------------------------------------+                reload()          Reloads the current URL in the browser window.  +------------+----------------+------------------------------------------+                replace()         Loads the new page passed in the current browser.  +------------+----------------+------------------------------------------+   Property +------------+----------------+------------------------------------------+                hash              Represents an anchor name in the URL that begins                                   with the # character. +------------+----------------+------------------------------------------+                host              Represents the hostname and port number of the URL. +------------+----------------+------------------------------------------+                hostname          Represents the hostname part of the URL. +------------+----------------+------------------------------------------+                href              Represents the complete URL. +------------+----------------+------------------------------------------+                pathname          Represents the PATH_INFO part of the URL. +------------+----------------+------------------------------------------+                port              Represents the port part of the URL. +------------+----------------+------------------------------------------+                protocol          Represents the protocol part of the URL. +------------+----------------+------------------------------------------+                search            The search part of the URL, including the ?. +------------+----------------+------------------------------------------+ */