The
window
binding refers to a built-in object provided by the browser.
It represents the browser window that contains the document. Calling its
addEventListener
method registers the second argument to be called when-
ever the event described by its first argument occurs.
Do'stlaringiz bilan baham: