简体   繁体   中英

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.

您是否尝试过parent.your_var

contentWindow.parent.myVariable

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM