Possible Duplicate:
How to call a function in an iframe from the parent page?
How Call javascript function inside iframe from parent?
Possible Duplicate:
How to call a function in an iframe from the parent page?
How Call javascript function inside iframe from parent?
If the iframe is not from the same domain as the parent's page(including using the same protocol, and sub domain) then this isn't possible, but if from the same domain using the same protocol:
To call a function the parent has from the iframe:
parent.functName()
To call a function in the iframe from the parent:
window.frames.iframeID.functName();
$('#iframeid').get(0).contentWindow.yourfunction()
that's the jQuery
way
if you want to call a function in parent from the ifreme, just use
window.top.yourfunction()