无法从沙盒iframe打开的链接提交表单?

时间:2018-10-18 11:48:25

标签: javascript iframe sandbox

以下代码中的https://example.com/html-and-link-to-other-page.html页在加载后显示了一个链接,当用户单击链接时,将打开一个新表单,其中包含用户可以提交的表单。当我将上面的页面直接加载到新页面时,FORM提交起作用,但是当链接从此IFRAME加载时却不起作用。

<iframe id="EXT_FRAME" border="0" scrolling="no" style="border: 0 none;" sandbox="allow-scripts allow-popups allow-same-origin" src="https://example.com/html-and-link-to-other-page.html" width="100%" height="250"></iframe>

我的问题是:

A)。为什么会这样?

B)。在不更改IFRAME沙箱属性的情况下提交表单的解决方案/技巧/窍门是什么?

0 个答案:

没有答案