I just noticed that the variables top , window and parent give me the same value. I tested this on the gmail inbox. Does anyone know what is the difference between these three values?
top
window
parent
If you are in a frame:
If you are not in any frame, all this will be just a link to the current window . If you are at only one frame level, parent and top will both be references to the same thing.