我想编写javascript警报代码,以便在显示消息时OK自动按下该按钮.
HTML
<html>
<script language=javascript>
function rdir()
{
alert("Please wait while the page is redirected!");
window.location="/alarms_act_lat.htm";
}
</script>
<body onLoad=rdir()>
<center>
<h1>LATCHED ALARMS ARE CLEARED</h1>
</center>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
980 次 |
| 最近记录: |