How to use window object document in JavaScript
In this article, i am going to explain about use of documents in JavaScript.
Document property in JavaScript window object
This property contains information about current documents.
Syntax of document property
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:
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