实现脚本如下:

<script type="text/javascript">

<!--//
   function goTo()
   {
        var newA = document.createElement("a");
        newA.id='gg'
        newA.target='_blank';
        newA.href='http://www.google.com';
     
      
        document.body.appendChild(newA);
        newA.click();
        document.body.removeChild(newA);

   }

//-->

</script> 

<a href="#" onclick="goTo()" >click me</a>

相关文章:

  • 2021-05-24
  • 2022-12-23
  • 2021-12-04
  • 2022-01-18
  • 2021-12-09
  • 2021-11-27
猜你喜欢
  • 2021-12-19
  • 2021-11-28
  • 2022-12-23
  • 2022-01-11
  • 2021-06-24
  • 2021-12-19
  • 2021-12-19
相关资源
相似解决方案