Methods and Properties of the Location Object : Location « Window Browser « JavaScript DHTML






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 ?.
+------------+----------------+------------------------------------------+
*/
           
         
    
  








Related examples in the same category

1.Location property
2.A Document with Anchors
3.Jump to a new location
4.Extracting the Directory of the Current Document