javascript document location

location NN <6 IE 3 DOM n/a

 

Read/Write

Indicates the URL of the current document. This property was deprecated because it may conflict with the window.location property. Netscape 6 drops support for this property entirely. Use either the document.URL property, or, better, the window.location.href property.

 
Example
 
document.location = "products/widget33.html";
 
Value

A full or relative URL as a string.

 
Default

Document URL.


  • #1
    2009-09-08
    [Quote]
    Its a very good conclusion even I would add this javascript code to get the document.write(window.location.href);
  • #2
    2009-12-18
    [Quote]
    Interesting...... :)
  • #3
    2009-12-23
    [Quote]
    quite nice :)
  • #4
    2010-05-11
    [Quote]
    document.location > window.location
Pico RG
gadgetgoat
rusk

561,Nickname,Homepage or email,Comments here,Add comment