EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

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

 

 

표시:
© 2014 Microsoft