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 37: Line 37:
     document.querySelector("iframe").addEventListener("click", function(e){
     document.querySelector("iframe").addEventListener("click", function(e){
       console.log("here");
       console.log("here");
      setTimeout(myGreeting, 50000);
       var iframeWin = document.getElementById("iframeWin");
       var iframeWin = document.getElementById("iframeWin");
       iframeWin.contentWindow.postMessage(null, 'https://your-second-site.example');
       iframeWin.contentWindow.postMessage(null, 'https://your-second-site.example');
Line 43: Line 44:
     window.addEventListener('message', event => {
     window.addEventListener('message', event => {
       console.log("no here");
       console.log("no here");
      setTimeout(myGreeting, 50000);
       console.log(event);
       console.log(event);
       console.log(event.origin);
       console.log(event.origin);

Revision as of 15:20, 7 July 2023

Usage