Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我被困在一种情况下。我有一个父 JSP 页面,我在其中调用了一个 i 框架,其中调用了不同的域 URL。现在我希望在 i 框架中有一个名为 logout 的按钮,带有一个 id:
<input type="button" id="logout" value="Logout">
现在这个按钮驻留在我的框架中,我想在我的父页面上点击事件。
任何帮助。
提前致谢。
尝试 document.parent 选择您的父文档