JavaScript
  Home arrow JavaScript arrow Methods of the DOM Location Object
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Methods of the DOM Location Object
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2008-12-08

    Table of Contents:
  • Methods of the DOM Location Object
  • Assign() Gives You Tasks
  • The Jatrix…Reloaded()
  • Replace()

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Methods of the DOM Location Object


    (Page 1 of 4 )

    In my last article I discussed the Dom Location Object Properties. Here, we will go over the Methods of those same objects, and if there is time, I will even cover the History Objects, which give you control over the user’s history list, allowing you to give them access to past URLs and advanced navigation.

    Just to recap, the Dom Location Object Properties we covered in the last article included the hash, which allowed us to set or retrieve the part of the URL that follows the hash (#) symbol, used for anchors in HTML. We also discussed the host property, which returned the host name and the portnumber, except in cases where the portnumber is the default value of 80, in which case no portnumber was returned.

    We also covered hostname, used to return just the hostname, and port, which returned or set just the portnumber, with the exception of course of the default value of 80. We also looked at href, which returned or set the entire URL, and pathname, which set or returned the path, such as /images/vacation/hippo.html.

    In addition we covered protocol, which told us the protocol being used (ie; http: or ftp: ) and last, but certainly not least, we discussed search, which we can use to set or return the portion of a URL that follows the question mark (?).

    Before we begin discussing the Methods of the Dom Location Objects, take a quick gander at our table:


    Name

    What It Does

    Type

    assign()

    Used when you wish to load a new document/page

    Method

    reload()

    Used when you want to reload the current page/document

    Method

    replace()

    Used when you wish to replace the current page/document with a new one

    Method

    More JavaScript Articles
    More By James Payne


     

    JAVASCRIPT ARTICLES

    - More Uses for the jQuery Tooltip Plug-in`s b...
    - Building Image-Based Tooltips with the jQuer...
    - Using the jQuery Tooltip Plug-in`s bodyHandl...
    - Using Rangelength, Min and Max with the Vali...
    - Using Minlength and Maxlength with the Valid...
    - Modifying Tooltip Coordinates with the jQuer...
    - Applying a Fade Out Effect with the jQuery T...
    - Tracking Mouse Movements with the jQuery Too...
    - Checking Online Forms with the Validator jQu...
    - Nested JavaScript Functions as Objects
    - The jQuery Tooltip Plug-in
    - Active Client Pages at the Server
    - ACP Tab Web Page
    - Finishing a Slide Show Application with jQue...
    - Scope of Variables and Arguments in Nested J...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    Stay green...Green IT