How to use window object document in JavaScript

In this article, i am going to explain about use of documents in JavaScript.
  • 1353

Document  property in JavaScript window object

This property contains information about current documents.

Syntax of document  property

window.documents


Example of document property

<!DOCTYPE html>

<html>

<head>

<title>We are learning Window property in JavaScript</title>

<h1 style="color: blue">window Object with document Property</h1>

<hr />

</head>

<body>

<script type="text/javascript">

    alert(window.document.title);

</script>

</body>

</html>


Output:

document.jpg

You may also want to read these related articles :here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here
 

Categories

More Articles

© 2013 dotNetheaven. All rights reserved.