admin管理员组文章数量:1025457
I have an iframe with an anchor tag inside of it
<iframe class="active" scrolling="no" src="{bodyUrl}" sandbox="allow-top-navigation allow-same-origin allow-forms allow-popups"><a data-fr-linked="true" href="; id="isPasted" target="_blank">Navigate</a></iframe>
My issue is that a user upon following this url, a new tab opens, but the new tab page remains white, blank.
In Chrome i get this error
Blocked script execution in '' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
Now I know for a fact if I add allow-scripts to the sandbox property the page will load, but I need an alternative way which would allow a user's interaction following the url to allow that page to open?
I know if I
Correct me if I'm wrong. The new page has scripts attached to it and even though we open a new window from the iframe, the sandbox property still applies? That's why we see the error?
The issue is I don't have access to the new page's source code.
I have an iframe with an anchor tag inside of it
<iframe class="active" scrolling="no" src="{bodyUrl}" sandbox="allow-top-navigation allow-same-origin allow-forms allow-popups"><a data-fr-linked="true" href="; id="isPasted" target="_blank">Navigate</a></iframe>
My issue is that a user upon following this url, a new tab opens, but the new tab page remains white, blank.
In Chrome i get this error
Blocked script execution in '' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
Now I know for a fact if I add allow-scripts to the sandbox property the page will load, but I need an alternative way which would allow a user's interaction following the url to allow that page to open?
I know if I
Correct me if I'm wrong. The new page has scripts attached to it and even though we open a new window from the iframe, the sandbox property still applies? That's why we see the error?
The issue is I don't have access to the new page's source code.
本文标签: iframe anchor tag url opening in a new page with blank contentStack Overflow
版权声明:本文标题:iframe anchor tag url opening in a new page with blank content - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745622435a2159656.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论