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 9: Line 9:
   <iframe id="iframeWin"
   <iframe id="iframeWin"
           src="/wiki/Special:WhatLinksHere/</html>{{PAGENAME}}<html>"
           src="/wiki/Special:WhatLinksHere/</html>{{PAGENAME}}<html>"
           style="border:none;height:100%;width:100%;display:none;"
           style="border:none;width:100%;display:none;"
           title="What Links Here">
           title="What Links Here">
   </iframe>
   </iframe>
Line 32: Line 32:
     window.onload = function() {
     window.onload = function() {
       var iframe = document.getElementById("iframeWin");
       var iframe = document.getElementById("iframeWin");
      console.log(iframe.contentWindow.document.body.scrollWidth);
      console.log(iframe.contentWindow.document.body.scrollHeight);
     
      iframe.width = iframe.contentWindow.document.body.scrollWidth;
       iframe.height = iframe.contentWindow.document.body.scrollHeight;
       iframe.height = iframe.contentWindow.document.body.scrollHeight;
     }
     }
   </script>
   </script>
</html>
</html>

Revision as of 13:44, 7 July 2023

Usage