If you are within a frame:
windowrefers to the current frame.parentrefers to the parent of the current frame.toprefers to the outermost frame.
If you’re not within any frame, these will all just be a reference to the current window. If you’re only within one level of frame, parent and top will both be a reference to the same thing.