JS跳转页面的几种方法
Posted Mr_伍先生
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JS跳转页面的几种方法相关的知识,希望对你有一定的参考价值。
JS的几种跳转方式:
1. window.open(”url“)
2.用自定义函数 <script> function openWin(tag,obj) { obj.target="_blank"; obj.href = "Web/Substation/Substation.aspx?stationno="+tag; obj.click(); } </script> <a href="javascript:void(0)"onclick="openWin(3,this)">点我</a>
3. window.location.href=‘‘;
以上是关于JS跳转页面的几种方法的主要内容,如果未能解决你的问题,请参考以下文章