window.location = "http://www.xxxxxxxx.net" 跳轉後有後退功能
其實應該是 window.location.href
window.location.replace("http://www.xxxxxxxx.net") 跳轉後沒有後退功能
window.open("http://www.xxxxxxxx.net") 要新的窗口打開連接
這個通常用於簡單的彈出頁面,如今基本上都被屏蔽掉了
window.location.reload();
window.location = "/Admin/UserList";
window.open("/Admin/UserList");
window.location.href = '/Admin/UserList'; 框架
window.location.reload()刷新當前頁面..net
parent.location.reload()刷新父親對象(用於框架)對象
opener.location.reload()刷新父窗口對象(用於單開窗口)io
top.location.reload()刷新最頂端對象(用於多開窗口)List