같은 페이지 계속 리로드(리로딩)하는 자바스크립트소스
<SCRIPT>
<!--
function reload() {
var timeleft = time.left;
timeleft.value = timeleft.value - 1;
if (timeleft.value < 1) window.Location="monitoring.html" ;
//this would point to this page if you wanted to reload.
//Here I'm using it to keep people from just sitting on this page.
{setTimeout('reload()',1000);}
}
setTimeout('reload()',1000)
//-->
</SCRIPT>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>모니터링</title>
</head>
<body>
<FORM NAME="time">
auto reload time : <INPUT TYPE=TEXT NAME="left" VALUE=60> seconds left</FORM>
<iframe name="portal" src="http://www.socialservice.or.kr/" height="1024" width="1280" ></iframe>
</body>
</html>