w3schools
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About

Document 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 type="text/javascript">
document.write(document.URL);
</script>

</body>
</html>

Try it yourself »


Document Object Reference Document Object

DreamTemplate

WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
Top Web Hosting
Cheap UK Web Hosting
WEB BUILDING
XML Editor – Free Trial!
FREE Flash Website
FREE Web Templates
SEO Company
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
SHARE THIS PAGE