javascript - 删除执行 imacros 脚本时打开的第二页
问题描述
如何摆脱使用此 href 执行 imacros 脚本时打开的第二个页面
第一个选项卡是一个包含此标记的简单 html 页面:
<a target="blank"
href="javascript:window.open('imacros://run/?m=#current.js');">
<button>Run macro</button>
</a>
单击此链接时,将打开第二个选项卡,其中包含图像中的内容以及我要删除的内容。第三页包含我要执行的内容。
注意:我想保持第一页打开。
解决方案
无法对此进行测试,但我会尝试:
<a
href="#"
onclick="javascript:window.open('imacros://run/?m=#current.js');return false;"
>
<button>Run macro</button>
</a>
推荐阅读
- algorithm - 在网格上找到与给定集合的最大曼哈顿距离的点集
- math - Python Scipy.integrate.solve_ivp 返回初始解决方案,或与被要求集成的相比很少的点
- python - 如何下载真实图像而不是数据:image/gif 占位符
- android - Android 11 - window.setDecorFitsSystemWindow 不在状态和导航栏后面显示屏幕
- javascript - 我试图找出它叫什么
- excel - Link.innertext 用于多个选项 VBA
- html - 位置:固定行为类似位置:绝对
- python - 我如何使用本地照片在使用 Python 的人脸 API 调用(Microsoft 认知服务)中进行处理
- c++ - std::optional: 不参与重载决议与被定义为删除
- java - 保存在数据库中时显示空指针错误