总结Javascript跳转的几种方法

(1)window.open("url")
(2)自定义函数:
         <script>
         function openWin(tag,obj)
         {
             obj.target="_blank";
             obj.href = "News/DisplayNews.aspx?id="+tag;
             obj.click();
         }
        </script>
     <a href="javascript:void(0)" onclick="openWin(5,this)">广州</a>

(3)window.location.href=""

http://blog.csdn.net/tykw163/article/details/2730258

你可能感兴趣的:(总结Javascript跳转的几种方法)