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
windowobject implements theWindowinterface, which in turn inherits from theAbstractViewinterface.
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);