iframe-outer.js
Uploaded on Oct 29 2021 22:28 by kinan.abou-afach
// Listen for "message" events
window.addEventListener("message", function (event) {
// Print any received messages in the console
// console.log("received in outer window: ", event.data);
console.log("outer.js loaded"); //ka
// Use this to get the iframe element
var form = document.getElementById("loginframe");
// If the message object contains height data...
if (event.data.height)
{
// Use that height to resize the iframe
form.height = event.data.height;
}
});
// // Listen for "message" events
// window.addEventListener("message", function (event) {
// // Print any received messages in the console
// console.log("received in outer window: ", event.data);
// // Use this to get the iframe element
// var form = document.getElementById("loginframe");
// // If the message object contains height data...
// if (event.data.height)
// {
// // Use that height to resize the iframe
// form.height = event.data.height;
// }
// });
Back to list