-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDay2-Task
26 lines (16 loc) · 798 Bytes
/
Day2-Task
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## Write the bolg on the difference between document and window object
- Window & document are the object in Browser JS.
### Window Object
- Window is a global object.
- It is used to access browser javascript engine.
- It has all the informations and global variables, function and objects.
- document is one of the object inside window.
- ### Example:
How to work the properties of the window object
=> Location : it is one of the property of the window, it is used to navigate the browsing web page.
=> Syntax:
window.location = browsing web page,like ("https://www.myntra.com" ).
### document Object
- document is an object.
- It is used interact with the html document or html web page.
- Using this we can make our website more interactive and functional to the user.