<script type="text/Javascript">
//頁面五秒種自動刷新,數據重复加載一次
function loadpop()
{
//功能:五秒種自動獲取 txt_value文本框的值
var obj=document.getElementById("txt_value").value;
alert(obj)
setTimeout("loadpop()",5000);
}
</script>
</head>
<body text="#000000" οnlοad="loadpop();">
<form id="form1" runat="server" >
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left">
<asp:TextBox ID="txt_value" runat="server" Text="123"></asp:TextBox>
</td>
</tr>
</table>
</form>
</body>
</html>
Javascript实现页面自动重复加載一次
最新推荐文章于 2024-08-25 09:57:22 发布