For this example, we’re going to assume the parent frame contains a JavaScript function named interactionCompleted.
function interactionCompleted(result){ //Do something with result}