链接其他页的几种办法

前台链接:

1.

window.open("test.aspx");

2.用自定义函数

<script>
         function openWin(tag,obj)
         {
             obj.target="_blank";
             obj.href = "Web/Substation/Substation.aspx?stationno="+tag;
             obj.click();
         }
</script>
html代码:
<a href="javascript:void(0)" onclick="openWin(3,this)">株洲</a>

3.

window.location.href="test.aspx";
原文地址:https://www.cnblogs.com/SunXiaoLin/p/3396217.html