Template: WhatLinksHere: Difference between revisions
From ASDSO Dam Safety Toolbox
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); | 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'); |
Revision as of 15:22, 7 July 2023
Usage