![](/img/trans.png)
[英]how to show pop up alert message without blocking the page to render and how to refresh chart in each 30 sec
[英]how alert message to client when the page want refresh?
大家好,我是Java脚本的初学者,我需要发出一些警报,并表明当页面需要刷新并完成一些工作(如counter = 0)或删除文件时,如何通过jquery和Java脚本执行此操作? 谢谢!
在页面加载/刷新之前:
<head>
alert("hello");
</head>
体内:
<script>
$count= 0;
while ($count < 10 ) {
$count++;
}
alert("counter increased: " + $count + " times");
</script>
您可以绑定刷新事件:
window.onbeforeunload = function () {
return 'Post job process not completed yet.';
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.