How do I disable HTML frames in Chrome browser?

4

I can't find any settings to allow me to disable the display of HTML Frames in my browser. If there is no setting is some sort of extension my only option?

David Csonka

Posted 2013-01-15T18:27:32.277

Reputation: 143

What exactly are you trying to do? Are you trying to test your web page for very very very old browsers? If you disable frames, what do you expect to see in the browser? One of the frames only? Nothing? Are you sure you mean frames? – terdon – 2013-01-15T18:32:14.493

I am quite sure I mean frames. And yes, I intend to test the output of a website when frames are disabled or not allowed. – David Csonka – 2013-01-15T22:26:15.123

Fair enough, from a developer's point of view I can understand it, from an end user's it would just be weird in 2013 :). – terdon – 2013-01-16T00:41:15.567

Answers

4

I don’t think there is a setting for this. The last browsers where I saw such an option was some version of Opera.

In principle, it should be possible by using the following CSS code as a user style sheet:

frame { display: none !important; }
noframes { display: block !important; }

But it seems that it does not work: Chrome recognizes the rules, but fails to obey them.

Jukka K. Korpela

Posted 2013-01-15T18:27:32.277

Reputation: 4 475

Odd that chrome doesn't have this option or something similar. – Pacerier – 2015-03-03T22:53:39.907

1We can set browser.frames.enabled to false in FireFox about:config – Pacerier – 2013-05-24T16:14:57.527

@Pacerier, that’s interesting, but the setting seems to just make a frameset page look empty – it does not cause the noframes element to be rendered! – Jukka K. Korpela – 2013-05-24T16:20:05.340