Methods and Properties of the Location Object : Location : Window Browser JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Window Browser » Location »

 

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



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Window Browser
» Location