I need to detect if a page is loaded from an <object>
tag. On most browsers, several javascript iframe detection techniques flag this as an iframe (e.g. window.top === window.self
), which is just fine.
The page is loaded via an object tag as such:
<object width="0" height="0" data="/target/"></object>
Some versions of Internet Explorer 6 are the exception (big surprise). The browser version is not controllable. IE 6.0.2800 does not identify as an iframe, and will pass any expected width & height values along.
EDIT: If there is a way to have the target page break any loads from object tags (at least IE6, but any others would be okay), that would be fine with me.