faqts : Computers : Programming : Languages : JavaScript : Frames

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

15 of 21 people (71%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How do I access a user-defined function in the main page from inside an <IFRAME>?

Jun 25th, 2001 06:24
Tom Sugden, Nick Jelfs,


From within an IFrame you can use:
    window.parent.singAndDance();
to access a function called "singAndDance()" in the IFrame's parent.