admin管理员组文章数量:1349663
I have a Fancybox that opens a contact form from an iframe. Inside the iframe, i have a close button but it's not working.
I have tryed both with $.fancybox.close();
and parent.jQuery.fancybox.close();
What am I doing wrong ?
I have a Fancybox that opens a contact form from an iframe. Inside the iframe, i have a close button but it's not working.
I have tryed both with $.fancybox.close();
and parent.jQuery.fancybox.close();
What am I doing wrong ?
Share Improve this question edited Mar 5, 2023 at 4:00 asked Nov 10, 2012 at 6:38 user1733295user17332952 Answers
Reset to default 9As per http://fancybox/api Try this instead :
parent.$.fancybox.close();
The problem is you are trying to execute parent windows js function with different host name ( its not allowed ).
Try access you site without www.
( this is because your contact
button using fancy from url without www.
)
本文标签: javascriptClose fancybox from iframeStack Overflow
版权声明:本文标题:javascript - Close fancybox from iframe - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743867936a2552927.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论