How to stop iframe braker

Hi,

I want to use iframe to include other htmls from outside. But there are iframe breakers in those htmls.

How can I possible to stop the breaker script?

This link approves no help! http://www.steadyhealth.com/Web_Hosting_Anti_Frame_Breaker_solution_t53346.html

Thanks
wsyyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GreggCommented:
You cannot override the functionality of another website. So i would guess its not possible. Hope this helps you.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
wsyyAuthor Commented:
If that is not possible, is it possible to put my program at the bottom of the browser as a banner ads?
0
wsyyAuthor Commented:
or is there something like the iframe that i can put something around the website that I was supposed to load into the iframe?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

GreggCommented:
I am sorry wsyy, after reading that turtorial and testing - it works for me. I had no idea...

Can you look at the html files, test them and see if this works for you? iframcontent.html parentFrame.html
0
wsyyAuthor Commented:
No, the script doesn't.

I am using Chrome. What did you use?
0
GreggCommented:
IE8 and FF
0
GreggCommented:
I tested by putting parentframe on my local machine. And iframecontent page on web server to test as if separate servers.
0
wsyyAuthor Commented:
on my side, Chrome doesn't work. Also heard that IE8 won't work either. Just wonder why it works in your case.

could you please to try this script and replace the old one with this on ur side? this script seems more powerful to break the inframe. sucks!

function(){

    if (window.top !== window.self){

        var ROOT_HOST = "iframecontent.html";

        try {

            var host = window.top.location.host;

            if(ROOT_HOST === host) return;

        } catch(e) { }



        setTimeout(function(){

            window.top.location = window.self.location;

            document.body.innerHTML = '';

        }, 0);

        window.self.onload=function(){

            document.body.innerHTML = '';

        };

    }

}
0
GreggCommented:
Perhaps it doesnt...

Maybe the iframe script was wrong. I didnt think to check firebug for errors. Maybe i should have stuck with gut feeling - it doesnt work.

After looking at that post, i gave a try. I cant recall ever working with iframe so i apologize for my ignorance.
0
GreggCommented:
Im sorry i was not more helpful. Thank you!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.