Window object:
Window object is the global object. Any operation performed related to entire browser window can be a part of window object.
DOM :
DOM is a child of Window Object
For eg :
Window object can get us URL of the website but DOM cannot.
window.location.href
No need to write window when we use window function
Some methods of window object :
setTimeout()
setInterval()
0 Comments