TOC PREV NEXT INDEX

domref



URL


Returns the URL of the current document.

Syntax

url = document.URL
 

Parameters

url is a string representing the URL of the current document.

Example

var currentURL = document.URL;
 
alert(currentURL); 
 

Notes

URL is a replacement for the DOM Level 0 document.location.href property. However document.URL is not settable, unlike document.location.href.

Specification

URL
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX