首页 > 解决方案 > 从弹出窗口中获取元素

问题描述

我正在尝试使用带有 react native 的 webview 更轻松地更改 SSID 和密码的应用程序。但是当我开始应用更改时,会出现一个弹出窗口。我不知道如何从弹出按钮中获取 id。我正在将 getelementbyid 用于其他元素。

编辑:我在堆栈中找到了这篇文章,他在其中更改了按钮内的脚本。但是当脚本在标签内时我不知道该怎么做:((((

按钮:

<button id="btnApplySubmit" name="btnApplySubmit" type="button" class="ApplyButtoncss buttonwidth_100px" onclick="ApplySubmit();">
<script>
document.write(cfg_wlancfgother_language['amp_wlancfg_apply']);
</script>Apply
</button>

标签: javascriptjqueryreact-nativedomwebview

解决方案


推荐阅读