How to disable dialog boxes - alert ()?

I have a page where I show iframes. The snippets are in the same domain as the website, so I can edit and read its contents, but I can’t edit the iframes source code because I don’t have access to the file itself. IFrames warns about the message, and I want to disable it. I want to turn off the dialogs, at least for myself, I use chrome ...

Is this possible without disabling javascript? Or can I disable javascript only inside iframes?

+5
source share
1 answer

What about:

window.frames[0].alert = function() {};

iframe , , alert(...) , .

iframe, 0 1 ..

+7

All Articles