URL property

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
9 out of 9 rated this helpful - Rate this topic

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

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.