Template: WhatLinksHere: Difference between revisions
From ASDSO Dam Safety Toolbox
No edit summary |
No edit summary |
||
Line 34: | Line 34: | ||
iframe.height = iframe.contentWindow.document.body.scrollHeight; | iframe.height = iframe.contentWindow.document.body.scrollHeight; | ||
} | } | ||
document.querySelector("iframe").addEventListener("click", function(e){ | |||
console.log(window.top.location.href); | |||
//window.top.location.href = "http://www.example.com"; | |||
}); | |||
</script> | </script> | ||
</html> | </html> |
Revision as of 13:52, 7 July 2023
Usage