我需要以下内容:
我得到了一个 html
文档,其中有一个 iframe
和一个对象。 iframe 和对象都包含单独的 html 文件。
现在我想单击 iframe 中的链接,这应该会影响对象内的链接隐藏。
如何使用 jQuery
选择器来选择对象 html 文件中的链接?
结构:
<html file parent>
<iframe> html site 1 with link to click</iframe>
<object> html site 2 with links to affect </object>
<html file parent>
提前致谢!
最佳答案
如果 iframe 的域与您的 .
这是一个 JavaScript 限制。
关于javascript - 从 iframe 内容到对象内容的 jquery 选择器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22345574/