首页 > 解决方案 > 删除执行 imacros 脚本时打开的第二页

问题描述

如何摆脱使用此 href 执行 imacros 脚本时打开的第二个页面

第二个标签

第一个选项卡是一个包含此标记的简单 html 页面:

<a target="blank" 
  href="javascript:window.open('imacros://run/?m=#current.js');">
    <button>Run macro</button>
</a>

单击此链接时,将打开第二个选项卡,其中包含图像中的内容以及我要删除的内容。第三页包含我要执行的内容。

注意:我想保持第一页打开。

标签: javascripthtmlcssimacros

解决方案


无法对此进行测试,但我会尝试:

    <a
      href="#"
      onclick="javascript:window.open('imacros://run/?m=#current.js');return false;"
    >
      <button>Run macro</button>
    </a>

推荐阅读