1. <script type="text/javascript">
  2. <!--//
  3. function sizeFrame() {
  4. var F = document.getElementById("autoiframe");
  5. if(F.contentDocument) {
  6. F.height = F.contentDocument.documentElement.scrollHeight; //FF 3.0.11, Opera 9.63, and Chrome
  7. } else {
  8.  
  9.  
  10.  
  11. F.height = F.contentWindow.document.body.scrollHeight; //IE6, IE7 and Chrome
  12.  
  13. }
  14.  
  15. }
  16.  
  17. window.onload=sizeFrame;
  18.  
  19. //-->




  1. <iframe onload="sizeFrame()" scrolling="no" name="autoiframe" id="autoiframe" src="aktualnosci.html"></iframe>



Jak powinienem przekształcić powyższy skrypt, aby działał na wszystkich przegladarkach Firefox?