invoke function from outsidfe i frame code example Example: how to access parent function from iframe document.getElementById('targetFrame').contentWindow.targetFunction();