ASDSO Dam Safety Toolbox

Template: WhatLinksHere: Difference between revisions

From ASDSO Dam Safety Toolbox
Jump to: navigation, search
No edit summary
No edit summary
Line 14: Line 14:


   <script type="application/javascript">
   <script type="application/javascript">
     window.onload = function() {
     document.querySelector("iframe").addEventListener( "load", function(e) {
       var iframeWin = document.getElementById("iframeWin");
       var iframeWin = document.getElementById("iframeWin");
       // Set iframe height
       // Set iframe height
       iframeWin.height = iframe.contentWindow.document.body.scrollHeight;
       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;
Line 30: Line 30:
       // Show iframe
       // Show iframe
       iframeWin.style.display="block";
       iframeWin.style.display="block";
     }
     });
   </script>
   </script>
</html>
</html>

Revision as of 15:33, 7 July 2023

Usage