gpt4 book ai didi

javascript - 如何触发其他网站的按钮

转载 作者:行者123 更新时间:2023-11-28 17:12:47 26 4
gpt4 key购买 nike

我有一个 I 框架,iframe 内是另一个网站。我想触发登录按钮到我的外部按钮

enter image description here

最佳答案

如果它来自另一个站点/域,则无法执行此操作,它必须位于同一域中。要访问同一域中 iframe 中的元素,您可以使用 frames property窗口对象的

let iframeBtn = window.frames['yourIFrame'].document.getElementById('buttonId');

//code to trigger the button inside the iframe

关于javascript - 如何触发其他网站的按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54068195/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com