在 Java script:FunctionName in href 的新选项卡中打开



我的函数上同时有href和onclick事件。

在单击时,我有代码可以导航到perticuar页面。当我单击在新选项卡中打开时,它会打开一个带有about:blank的链接。

你能帮我什么吗

,我能为此点什么。

下面是我的代码。

<a href="javascript:void(0);" id="help" onclick="javascript:GoToURL('/html/mystats.cfm')" >Test </a>

<a href="javascript:void(0);" onclick="window.open('https://www.example.com', '_blank'); ">Test</a>

相关内容

最新更新