how to call child element to parent in iframe code example
Example: how to access parent function from iframe
document.getElementById('targetFrame').contentWindow.targetFunction();
document.getElementById('targetFrame').contentWindow.targetFunction();