faqts : Computers : Programming : Languages : JavaScript

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

24 of 50 people (48%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How do I pass a value when I click on a button in IFrame to the parent html?

Apr 6th, 2008 18:53
ha mo, Colin Fraser, Kenneth Chaw Siang Ching,


I suppose there is some reason for using an IFRAME, but would ordinary
frames be of greater flexibility? However, it is your design so do with
it as you will. 
You can send the value of the variable from the IFRAME to the parent, try: 
              var parentVar = parent.iframeName.iframeVar;
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com