<html><head><title>My JSP 'index.jsp' starting page</title><metahttp-equiv="pragma"content="no-cache"><metahttp-equiv="cache-control"content="no-cache"><metahttp-equiv="expires"content="0"><metahttp-equiv="keywords"content="keyword1,keyword2,keyword3"><metahttp-equiv="description"content="This is my page"><script>var num =3;
window.onload=function(){var s = window.setInterval(function(){
document.getElementById("s").innerHTML=num;
num--;if(num<=0){
window.close();}},1000);}</script></head><body><h1><s:propertyvalue="msg"/></h1><h2>本窗口在<spanid="s">3</span>秒之后关闭!</h2><inputtype=buttonvalue=关闭窗口onclick="window.close();"/></body></html>