Each document (therefore, each frame) has its own window object.
The window object is not a unique singleton. This is just an instance of window . One is created for each document , and can be accessed through document.defaultView .
If and only if two parts of your application share document , they share the window .
There is no object [[global]] : the global area is just a way to conveniently access the current window .
source share