HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM URL Property

Document Object Reference Document Object

Definition and Usage

The URL property returns the full URL of the current document.

Syntax

document.URL


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The URL property is supported in all major browsers.


Example

Example

Return the full URL of the current document:

<html>
<body>

The full URL of this document is:
<script>
document.write(document.URL);
</script>

</body>
</html>

Try it yourself »


Document Object Reference Document Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE