I'm having trouble tracking this down for somewhat obvious reasons. What is the Window
object in javascript? Not the window
object..
Using console.dir(Window)
in Chrome shows it has the properties PERSISTANT
, TEMPORARY
and a length
.
I'm having trouble tracking this down for somewhat obvious reasons. What is the Window
object in javascript? Not the window
object..
Using console.dir(Window)
in Chrome shows it has the properties PERSISTANT
, TEMPORARY
and a length
.
It's the interface that the global window
object is an instance of. MDN says:
The
window
object implements theWindow
interface, which in turn inherits from theAbstractView
interface.
A W3C spec defines the interface here: https://www.w3.org/TR/html5/browsers.html#window
Window is the constructor function that is used to create window.
Try alert(window.constructor);