JS 定時刷新父類頁面

     function timeCount() {
                     var url = "MAC.aspx";
                     parent.location.href = url;
                 }

                 function beginCount() {
                     window.setInterval("timeCount()", 5000);
                 }

后臺調用: Page.RegisterStartupScript("", "<script>beginCount();</script>");

posted @ 2013-12-18 15:42  xw2cc  阅读(181)  评论(0编辑  收藏  举报