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
  • abhishek
    #5
    2011-04-30
    [Quote]
    i want to pass a variable to the function above, how can i do dat??
  • #6
    2011-05-30
    [Quote]
    Thx, just what i needed for my site
  • m.....
    #7
    2012-02-04
    Reviewing ...
Pico RG
gadgetgoat
rusk
abhishek
billiga kläder
m.....

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