function receiveMessage(event) { // if (event.origin !== 'https://cdn.foxpost.hu') {return}; var apt = JSON.parse(event.data); console.log(apt.name, apt.findme); } window.addEventListener('message', receiveMessage, false);
top of page
bottom of page