ASDSO Dam Safety Toolbox

Template: WhatLinksHere: Difference between revisions

From ASDSO Dam Safety Toolbox
Jump to: navigation, search
No edit summary
Tag: Reverted
(Undo revision 6974 by Lkeby (talk))
Tag: Undo
Line 16: Line 16:
     document.querySelector("iframe").addEventListener( "load", function(e) {
     document.querySelector("iframe").addEventListener( "load", function(e) {
       var iframeWin = document.getElementById("iframeWin");
       var iframeWin = document.getElementById("iframeWin");
      // Set height
      iframeWin.height = iframeWin.contentWindow.document.body.scrollHeight;
       var content = (iframeWin.contentWindow || iframeWin.contentDocument);
       var content = (iframeWin.contentWindow || iframeWin.contentDocument);
       if (content.document)content = content.document;
       if (content.document)content = content.document;

Revision as of 15:52, 7 July 2023

Usage