HTML:将变量作为目标传递到 iframe 时,href 属性不会打开 URL
HTML: href attribute doesn't open an URL when passing variables into an iframe as target
我有一个用于在 iframe 中查看某些网站的网页(具有 "viewport" 作为名称属性)。
当我点击下一步按钮时,没有任何反应:
<a href="https://www.google.be/search?hl=en&site=imghp&tbm=isch&source=hp&q=site%3Aromanliturgy.org" target="viewport" ><button type="button">View</button></a>
但是当我手动将 URL“https://www.google.be/search?hl=en&site=imghp&tbm=isch&source=hp&q=site%3Aromanliturgy.org”粘贴到浏览器的新选项卡中时,它起作用了。
使用简单的 URL 作为“http://themusicpoint.tumblr.com/archive”
不会出现此问题
我不知道哪里出了问题。任何帮助,将不胜感激。提前致谢。
站点 www.google.be 不允许该页面显示在其他站点的 iframe 中。 (HTTP header X-Frame-Options 设置为 SAMEORIGIN)
Firefox 控制台中的错误消息如下:
Load denied by X-Frame-Options: https://www.google.be/search?hl=en&site=imghp&tbm=isch&source=hp&q=site%3Aromanliturgy.org does not permit cross-origin framing.
我有一个用于在 iframe 中查看某些网站的网页(具有 "viewport" 作为名称属性)。
当我点击下一步按钮时,没有任何反应:
<a href="https://www.google.be/search?hl=en&site=imghp&tbm=isch&source=hp&q=site%3Aromanliturgy.org" target="viewport" ><button type="button">View</button></a>
但是当我手动将 URL“https://www.google.be/search?hl=en&site=imghp&tbm=isch&source=hp&q=site%3Aromanliturgy.org”粘贴到浏览器的新选项卡中时,它起作用了。
使用简单的 URL 作为“http://themusicpoint.tumblr.com/archive”
不会出现此问题我不知道哪里出了问题。任何帮助,将不胜感激。提前致谢。
站点 www.google.be 不允许该页面显示在其他站点的 iframe 中。 (HTTP header X-Frame-Options 设置为 SAMEORIGIN)
Firefox 控制台中的错误消息如下:
Load denied by X-Frame-Options: https://www.google.be/search?hl=en&site=imghp&tbm=isch&source=hp&q=site%3Aromanliturgy.org does not permit cross-origin framing.