function timeCount() { var url = "MAC.aspx"; parent.location.href = url; } function beginCount() { window.setInterval("timeCount()", 5000); }
后臺調用: Page.RegisterStartupScript("", "<script>beginCount();</script>");