# Problem with Raising Event from IFrame in IE 7

**URL:** <https://forum.kirupa.com/t/problem-with-raising-event-from-iframe-in-ie-7/240125>\
**Category:** web dev\
**Created:** [September 29, 2007, 11:51am UTC](https://forum.kirupa.com/t/problem-with-raising-event-from-iframe-in-ie-7/240125 "2007-09-29T11:51:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![silverType](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@silverType](https://forum.kirupa.com/u/silverType)\
**Post date:** [September 29, 2007, 11:51am UTC](https://forum.kirupa.com/t/problem-with-raising-event-from-iframe-in-ie-7/240125/1 "2007-09-29T11:51:32Z")

</div>

My page contains an iframe which in turn, contains another child page. The child page contains a textbox and when it gains focus, a function that resides at the parent page should be invoked. To accomplish this, I set the following attribute for the textbox:

\<INPUT id=“tbSearch” title=“Google Search” maxLength=2048 size=55 name=q onFocus= “parent.showTestStrategyDiv()”;\>

When I open the pages in firefox, everything works fine. However, when I open them in IE7, I was given a permission denied error. Has anyone encountered this problem before and knows how to solve it?

And also, I was wondering if the raising of events in the iframe can be done at parent level. For eg. instead of specifying the onFocus=“parent.showTestStrategyDiv()” in the child page, is it possible to access its ‘onFocus’ attribute of the textbox (tbsearch) from the parent page?

Thanks in advance.
