1

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.

4

1 回答 1

-2

它真的需要在 IE6 下工作吗?我是说...

http://www.w3schools.com/browsers/browsers_stats.asp ... IE 只有 18.6% 而使用 IE 6 的人...

于 2012-04-16T15:58:23.577 回答