How do I disable HTML frames in Chrome browser?

06
2013-12
  • David Csonka

    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?

  • Answers
  • Jukka K. Korpela

    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.


  • Related Question

    Preventing line breaks in HTML
  • John D. Cook

    Is there any way to prevent a line break in HTML? For example, on one of my web pages the browser put a break after the comma in the number 43,560. I could remove the comma, but that makes the number harder to read.

    I seem to remember old-style HTML has a way to prevent line breaks but it isn't universally supported and isn't legal in stricter varieties like XHTML.


  • Related Answers
  • Joey

    You can use styles to ensure that the browser won't break lines there. CSS has a white-space property which does that. So

    <span style="white-space: nowrap;">43,560</span>
    

    should work.

    If you need this more often, you should probably create a CSS class for that, though.