Forum Moderators: open

Message Too Old, No Replies

Passing variable from iframe to the parent window

         

seanbun

4:36 am on Aug 15, 2005 (gmt 0)

10+ Year Member



I put an iframe in a page. Is it possible to pass variables from the iframe to the parent window with Javascript?

Thanks

lasdesign

12:53 pm on Aug 15, 2005 (gmt 0)

10+ Year Member



if you can explain a little more about the process you are trying to execute i might be able to help.

But the short answer is yes.

Dijkgraaf

9:39 pm on Aug 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Like lasdesign said yes it is possible.

For example if you want to set an item in the parents window form you would have

parent.document.formname.fieldname.value = [value you want to set]

Or a DIV
parent.document.all["DIVName"].innerHTML = [value you want to set]

seanbun

11:49 pm on Aug 15, 2005 (gmt 0)

10+ Year Member



Thanks a lot, guys!