Window.top === false state of a window in IE8

For some reason use

window.top === window 

a condition in IE8 is always evaluated as false (in other browsers it works fine). What is the reason for this, and is there any other way for this condition to work in a cross browser?

Thanks,

Joel

+7
source share
1 answer

This is a very complicated topic, but in the short version it uses == when comparing windows, not === , because of the "internal" and "external" reference aspects. You will find that (for example) window === self is false in some browsers.

+13
source

All Articles