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> 5 <head> 6 <title>标题页</title> 7 <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 8 </head> 9 <body> 10 <input type=text name="txt1" value="this is test!"> 11 <input type=button value="转换文本" onClick="javascript:changeCase(txt1)"> 12 </body> 13 </html>