That worked brilliantly, thanks again. I had to adjust some code to allow cross-iframe communication with my base js. For anyone following up on this thread, use:
<Inside iFrame>
function calledFromConstruct(_score) { // This is called from Construct using Execute Javascript "calledFromConstruct(score)"
localStorage.setItem("myScore", _score);
window.top.postMessage("myMessage", "*");
}
<Inside wrapper html page>
$(window).on("message", function(e) {
if (e.originalEvent.data=="myMessage") { // Filter out messages from other iframes such as those generated by FB iframe
var theScore = localStorage.getItem("myScore");
// Do something with score
}
});
I saved the game score inside localstorage so both the iframe and the wrapper page have access to it.