您的位置:首页 > 其它

刷新页面的学习笔记

2011-10-19 10:33 169 查看
js 端的

1.window.location.href=window.location.href//自己页面 postback 第一次

2.window.location.recload() //同上

3.document.from1.submit()// postback 第二次

4.document.all.<%=button1.ClientID%>.click()//将服务器button控件隐藏 触发该

5. Response.Redirect();//

局部刷新的 js

</script>

<script language="javascript">

//var intvalue=1;

//var timer2=null;

// timer2=window.setInterval("startShow()",3000);//设置时间,现在是3秒

//function startShow()

// {

//window.frames[ 'test'].location.href="freshstatus.aspx";//

//}

//function stop()

//{

//window.clearInterval(timer2);

//}

</script>

<iframe id="test" runat="server" name="ifr" border="0" frameborder="0" marginwidth="0"

marginheight="0" width="100%" src="freshstatus.aspx" height="80px" style="width: 35%; height: 144px">

</iframe>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: