window
↔ Interface to rep Browser. Global Object to access most global properties & methods
[<span data-tooltip-id="preview__m5YwpkGE9tqGgqQNY">window</span>](window) instance property
[<span data-tooltip-id="preview__m5YwpkGE9tqGgqQNY">window</span>](window) instance method
!gotcha Window is a function whereas (lowercase) window is an object
References
Web API
↔ API Collection extends Browser Runtime (viawindow
)Front-End App (JS)
↔ App to Execute in Browser Runtime with access towindow
(Global Object)this Function Call
↔ 👉<undefined\>
(in Strict Mode; Sloppy Mode 👉window
)resizeBy()
↔ to resizewindow
by(#_pixels
)resizeTo()
↔ to resizewindow
to specific width & height**Creation Phase**
↔ Global EC created withwindow
&this
keyword pointing to itTransient
↔ Client State tends to be temporary & lost onwindow
close (excludingWeb Storage API
)search
↔ Query String for currentwindow
locationLocation
↔ location Global Object forwindow
instancelocalStorage
↔Web Storage API
to persist data in Browser across sessions inclwindow
close