IE Overwrite window.top

Posted by Dave on Stack Overflow See other posts from Stack Overflow or by Dave
Published on 2009-02-21T22:17:29Z Indexed on 2010/04/08 9:03 UTC
Read the original article Hit count: 371

Filed under:
|
|

I'm trying to convince a page that it is the window.top even though it is in an iframe.

In FF you can do

window.defineGetter('top', function() { return window});

in Webkit (Safari/Chrome) you can simply do

window.top = window

but in IE none of those methods work. Anyone done this before?

© Stack Overflow or respective owner

Related posts about internet-explorer

Related posts about dom