简体   繁体   中英

calling a function in a javascript external file in a parent to an iframe

How do you call a javascript function that is in an external javascript file that was added to the parent of an iframe? I tried parent.function() in the iframe but that didn't work.

尝试使用window.parent.document

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