HTML DOM Location Object>>

Location Object

The Location object is an object that can be accessed through the location property of the Window object.

The Location object contains information about the current URL.

IE: Internet Explorer, F: Firefox, N: Netscape, W3C: World Wide Web Consortium (Internet Standard).

Location Object Properties

Property Description IE F N W3C
hash Sets or returns the part of the href property that follows the hash sign (#) 3 1 2  
host Sets or returns the hostname and port number of the location or URL 3 1 2  
hostname Sets or returns the hostname of the location or URL 3 1 2  
href Sets or returns the entire URL 3 1 2  
pathname Sets or returns the file name or path specified by the location object 3 1 2  
port Sets or returns the port number associated with the URL 3 1 2  
protocol Sets or returns the protocol part of the URL 3 1 2  
search Sets or returns the part of the href property that follows the question mark (?) 3 1 2  

Location Object Methods

Method Description IE F N W3C
assign("URL") Loads a new document 4 1 2  
reload() Reloads the current document 4 1 2  
replace("URL") Replaces the current document with the one specified 4 1 3  

 

<< Back








   



MSN Nick Name



More Resources...





Most Viewed Services:
  1. HTML Tutorial
  2. XHTML Tutorial
  3. CSS Tutorial
  4. Javascript Tutorial
  5. DHTML Tutorial
  6. VB Script
  7. TCP/IP Tutorial
  8. ADO Tutorial
  9. MYSQL Tutorial
  10. ASP Tutorial
  11. AJAX Tutorial
  12. CFML Tutorial
  13. PHP Tutorial
  14. WML Tutorial
  15. FLASH Tutorial
  16. XML Tutorial
  17. RSS Tutorial
  18. SQL Tutorial
  19. HTML Articles
  1. Javascript Articles
  2. PHP Articles
  3. SEO Articles
  4. Web Design Articles
  5. SEO Tips
  6. Web Design Tips
  7. Articles
  8. CSS
  9. CSS Tips
  10. HTML Tips
  11. JAVASCRIPT Tips
  12. MYSQL Tips
  13. PHP Tips
  14. Money
  15. Tutorials
  16. Web Hosting



  • Home
  • Web Directory
  • Top Directoriers
  • Webmaster Directories
  • Contact
  • © Copyright 2006 All Rights Reserved By CodeDcode.Com