document.location
In this chapter you will learn:
Document location
document.location
gets the URL of the current document.
The return type is Location
.
<!DOCTYPE HTML> <!-- j a v a 2s . co m-->
<html>
<body>
<script>
document.writeln(document.location);
</script>
</body>
</html>
Next chapter...
What you will learn in the next chapter:
Home » Javascript Tutorial » Document