user934167
user934167

Reputation:

javascript pass data from parent to iframe

how can i pass my data to iframe? some solution i found on the internet uses form having the iframe as it's target, but it is not applicable on my case. I need to pass large javascript variable to a form in iframe.

Upvotes: 1

Views: 3701

Answers (2)

Martin Gamulin
Martin Gamulin

Reputation: 3865

contentWindow.parent.myVariable

Upvotes: 0

Soony
Soony

Reputation: 923

Have you tried parent.your_var

Upvotes: 1

Related Questions