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.