Template: WhatLinksHere: Difference between revisions
From ASDSO Dam Safety Toolbox
No edit summary |
No edit summary |
||
Line 36: | Line 36: | ||
document.querySelector("iframe").addEventListener("click", function(e){ | document.querySelector("iframe").addEventListener("click", function(e){ | ||
debugger; | |||
console.log("here"); | console.log("here"); | ||
setTimeout | 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 => { | ||
debugger; | |||
console.log("no here"); | console.log("no here"); | ||
setTimeout(myGreeting, 50000); | setTimeout(myGreeting, 50000); |
Revision as of 15:25, 7 July 2023
Usage