window.location.href在IE6下面竟然不跳轉,這是爲什麼呢?
這個是我寫的語句:
function Add() {
url = "PaperSubmitMain.aspx?state=0&paperid=-1";
window.location.href = url;
}
後面是網上找到了解決方案
要加 這句返回值false 才行 一試 果然好了
window.event.returnValue = false;
function Add() {
url = "PaperSubmitMain.aspx?state=0&paperid=-1";
window.location.href = url;
window.event.returnValue = false;
}