简体   繁体   中英

How to prevent popups inside iframe?

我在我的网站上有一个iframe,有时iframe的内容使弹出窗口变为主要窗口,如何使用javascript(Jquery)阻止弹出窗口

If you don't control the server that is serving the page in your iframe, you can't. It's a security measure designed to prevent XSS (cross site scripting) attacks

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