简体   繁体   中英

Get container domain from inside the Iframe js

I'm trying to get the domain name of the host website of my Iframe is there a way to do that? I would really appreciate any help regarding this issue. Thanks in advance.

so I got the answer after working on it for a while we can get the url from the host website by using this method or by adding the an event to the iframe like this but yeah its working now

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