all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
This topic has not yet been rated - Rate this topic

URL property

Sets or gets the URL for the current document.

Syntax

JavaScript

p = object.URL

Property values

Type: String

the URL.

Standards information

Remarks

The URL property is case-sensitive.

This property is an alias for the location.href property on the window.

Examples

This example function returns the URL property of the current document.


function getURL()
{
    return document.URL;
}

See also

document
Reference
urn
URLUnencoded

 

 

Build date: 11/28/2012

© 2013 Microsoft. All rights reserved.