//方法一
Response.Redirect(Request.Url.ToString());
 
//方法二
Response.Write( "<script type=\"javascript\">window.location.href=document.URL;</script>");

//方法三
Response.AddHeader("Refresh", "0");

//方法四
Response.Write( "<script type=\"javascript\">window.location=window.location</script>" );
 

JavaScript 刷新頁面的方法:

window.location.reload()  » 刷新當下的頁面 .
parent.location.reload() » 刷新父對象(用於框架).
opener.location.reload() » 刷新父視窗對象(用於單一視窗).
top.location.reload() » 刷新最頂端對象(用於多個視窗).

arrow
arrow
    文章標籤
    javascript 刷新
    全站熱搜

    Jimmy 發表在 痞客邦 留言(0) 人氣()