javascript - How to Stop Gmail from maximizing an iFrame? -
I am trying to create a webpage with embedded Gmail in an iframe. However, Gmail has some JavaScript code that applies even when it loads. I believe the following is the reason for the JS code snippet that causes Gmail to kidnap the window and maximize itself, your parents destroy the iframe:
If (top.location! = Self.location) {top.location = self.location.href; }
Preferably, I'm looking for a solution that does not include cross-browser (and greasemonkey, or some other browser-based hacks). If jquery has some applicable functions / plugins, then it would be nice.
As Gmail uses code it's hard to stop it from running in a block. An article about this may contain some useful information.
Comments
Post a Comment