在页面每次刷时候可以调用一个javascript写的函数的办法
问:如何在页面每次刷新的时候可以调用一个javascript写的函数呢?
怎么调用呢?
______________________________________________________________________________________________
答1:
<body onload="yourfun();">
______________________________________________________________________________________________
答2:
我已经<body onload='setTimeout("location.reload()",1000)'>
设置了刷新时间,如何用onload调用javascript呢?
______________________________________________________________________________________________
答3:
<body onload='setTimeout("yourfun()",1000)'>
______________________________________________________________________________________________
答4:
<body onload='setTimeout("yourfun()",1000)'>
<script>
setTimeout("window.location.reload()",1000);
</script>
本文地址:http://www.45fan.com/dnjc/67269.html