js小技巧隐藏状态栏显示的地址

来源:互联网 发布:网络销售怎么做 编辑:程序博客网 时间:2024/06/07 04:47

链接的几种办法
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>


window.location.href=""

 

 

这种方法肯定还是无法最终隐藏参数信息,如果想隐藏,还是需要加密或。

原创粉丝点击