Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

executing functions in parent window from IFRAME

Status
Not open for further replies.

wcclark4

Programmer
Sep 30, 2002
2
US
This should be simple, I know...

From an IFRAME I need to execute a function which lives in the parent HTML. In Netscape I can do parent.fname() and it works. IE doesn't like it. top doesn't work either.

thanks

 
It should work in IE. I got it work in IE 5.5 using:
Code:
<script>function test(){alert('Hi')}</script>
<iframe src=&quot;about:<input type=button onclick=parent.test() value='Click Me'>&quot;></iframe>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top