1. Nachrichten
  2. Forum
    1. Unerledigte Themen
    2. Forenregeln
  3. Spenden
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. camp-firefox.de
  2. kenny1313

Beiträge von kenny1313

  • dynamic iframe height

    • kenny1313
    • 21. August 2011 um 14:00

    hi all,

    i´m using the code attached to dymically adapt my iframe containing site to its content regarding height. so forum height (inside iframe) changes => iframe height also changes....

    it works fine with ie and worked fine with firefox 4/5. now i installed firefox 6 and it doesnt work anymore??? js is enabled......

    console states: "document.all is undefined"


    any idea? can anyone adapt the code?? please help!!


    <head>
    <script language="JavaScript">
    function resize() {
    var iframe = document.all.FORUM;
    iframe.height=document.frames("FORUM").document.body.scrollHeight;
    }
    </script>
    </head>


    <body onload=resize();>
    <iframe src="mybb/" name="FORUM" scrolling="no" width="100%" height=100% frameborder="0" onload="this.height=this.contentDocument.height"></iframe>
    </body>

Unterstütze uns!

Jährlich (2025)

92,9 %

92,9% (604,17 von 650 EUR)

Jetzt spenden
  1. Kontakt
  2. Datenschutz
  3. Impressum
Community-Software: WoltLab Suite™
Mastodon