2008/10/20 16:33
CodeIN/Web
<!-- Codes by Quackit.com -->
<html>
<head>
<script type="text/JavaScript">
<!--
function timedRefresh(timeoutPeriod) {
setTimeout("location.reload(true);",timeoutPeriod);
}
// -->
</script>
</head>
<body onload="JavaScript:timedRefresh(5000);">
<p>This page will refresh every 5 seconds. This is because we're using the 'onload' event to call our function. We are passing in the value '5000', which equals 5 seconds.</p>
<p>But hey, try not to annoy your users too much with unnecessary page refreshes every few seconds!</p>
</body>
</html>
<html>
<head>
<script type="text/JavaScript">
<!--
function timedRefresh(timeoutPeriod) {
setTimeout("location.reload(true);",timeoutPeriod);
}
// -->
</script>
</head>
<body onload="JavaScript:timedRefresh(5000);">
<p>This page will refresh every 5 seconds. This is because we're using the 'onload' event to call our function. We are passing in the value '5000', which equals 5 seconds.</p>
<p>But hey, try not to annoy your users too much with unnecessary page refreshes every few seconds!</p>
</body>
</html>
'CodeIN > Web' 카테고리의 다른 글
| The value for the useBean class attribute common.CustomizedQuery is invalid. (2) | 2008/10/22 |
|---|---|
| [javascript]href구현하기 (3) | 2008/10/22 |
| [Javascript]Auto refresh (1) | 2008/10/20 |
| [how to]Eclipse에서 servlet 설정하기 (0) | 2008/10/17 |
| WSDL(Web Service Description Language) (0) | 2008/03/28 |
| Step 1: Apache AXIS 사용 (0) | 2008/03/26 |


