javascript - 从弹出窗口中获取元素
问题描述
我正在尝试使用带有 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>
解决方案
推荐阅读
- sql - 在oracle中对带有数字、小数点和文本的varchar2进行排序
- javascript - 无法更改 iOS Safari 上的按钮选择
- java - 尝试使用 notifyDataSetChanged 更新我的 listView 自定义列表适配器但不工作
- arrays - 如何在 Excel-VBA 中解析和寻址 json 矩阵数组?
- pandas - Pandas DataFrame Groupby 操作
- python - 在类或方法中初始化 Tkinter?
- vb.net - 每当我在组合框中选择另一个项目时,它都会显示错误的值
- python - 如何在选定的时间段内获取所有星期三的日期?
- aspnetboilerplate - 哪个是真正的 ASP.NET Boilerplate 项目?
- python - 无法获得使用 python 请求的授权