Alex Rivera | Logout

How to call a function in an iframe from the parent page?

Asked 2010-11-09T09:59:54.633
11

How to call a function in an iframe from the parent page?

Edit
Report

2 Answers

0

did you try?

top.frames['my_frame'].myFunc();
answered 2010-11-09T10:02:16.647
0

You can select the iFrame using its id

document.getElementById(iframeId).contentDocument

but I am not sure you can access its JavaScript, especially if child iFrame is from different domain

answered 2010-11-09T10:07:06.487

Your Answer