The window.parent is a reference to the parent window of the window that this script is executed in.
The window.parent is a reference to the parent window of the window that this script is executed in. The window.parent can be used when in a frame or iframe - in all other cases there is no parent window, and that reference will be undefined.