1、window.open(“url”)
2、用自定义函数
1 2 3 4 5 6 7 8 9 |
<script> function openWin(tag,obj) { obj.target="_blank"; obj.href = "Web/Substation/Substation.aspx?stationno="+tag; obj.click(); } </script> <a onclick="openWin(3,this)" href="javascript:void(0)">超链接</a> |
3、window.location.href=””;
谢谢博主的共享