View Full Version : Disable a framekiller
Rain Lover
07-03-2011, 02:04 PM
How can a framekiller be prevented from working?
Note: I can't modify the top frame source code.
Thanks in advance!
Mike
djr33
07-03-2011, 02:39 PM
Do something that blocks whatever the framekiller is doing. But without a link to the page we can't suggest much.
The problem is that both websites are trying to control the other and they are therefore fighting for control over the browser. Why do you need to do this?
Is your page the top frame or the contained frame?
There may also be TOS violations involved (either of your site, or the other, or both). Note that we don't support scripts that violate TOS. (Though if it is only your site being violated we can probably help.)
The short answer to all of this is that you can't change what it's doing. All you could do is interfere with the process somehow, but that might have side effects or not always work.
Note that there are domain restrictions on Javascript. You may not be able to do anything about a script operating on another domain. One option is to check if the page is contained in a frame or not (this is probably possible) and if so (or if not) then you can disable the page as needed.
Rain Lover
07-03-2011, 02:55 PM
Here's the iframe:
https://www.capnhq.gov/CAP.eServices.Web/default.aspx
jscheuer1
07-03-2011, 02:59 PM
Remove the highlighted:
<body onload="breakout_of_frame()" class="loginBody">
Rain Lover
07-03-2011, 03:05 PM
Remove the highlighted:
<body onload="breakout_of_frame()" class="loginBody">
The direct solution, but the problem is I don't have access to the above page souce code either! :(
if it's not your page, you shouldn't be trying to mess with it.
There may also be TOS violations involved (either of your site, or the other, or both). Note that we don't support scripts that violate TOS. (Though if it is only your site being violated we can probably help.)
...if there's more to the situation than that, perhaps you could explain and we might be able to help.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.