1.
1 <%@ page language="java" contentType="text/html; charset=UTF-8" 2 pageEncoding="UTF-8"%> 3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 4 <html xmlns="http://www.w3.org/1999/xhtml" > 5 <head> 6 <title>标题页</title> 7 <SCRIPT LANGUAGE="JavaScript"> 8 function renovates(){ 9 window.location.reload(); 10 } 11 </script> 12 </head> 13 <body onload="alert('页面刷新了!');"> 14 <p align="center"><input type="button" name="renovates" value="刷新" onclick="renovates()"/></p> 15 </body> 16 </html>