In JavaScript, window.opener refers to the window that opened the current window, parent refers to the parent frame in a frameset, and window.parent is another way to access the parent window. All three can refer to a parent window depending on the context.