【发布时间】:2014-06-08 17:08:18
【问题描述】:
我不希望任何人在未经我许可的情况下使用 iframe 内容。如何仅允许我选择的域能够将 iframe 嵌入页面内容?
我的问题是这样的:在我的 asp.net 网页中,一个 iframe 和这个 iframe 动态加载。 当我的网页第一次加载时,我的网页网址是:http://examle.com,而我的 iframe src 属性网址是:http://example.com/anotherwebpage.aspx。
我想限制任何人未经我的许可不得更改我的 iframe src 属性 url。如何做到这一点。
【问题讨论】:
标签: javascript jquery html asp.net iframe