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 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7 <title>Insert title here</title> 8 </head> 9 <body> 10 11 <input type="button" value="打开新窗口" onClick="NewWindow()"> 12 </body> 13 <script type="text/javascript"> 14 15 function NewWindow(){ 16 window.open("http://localhost:8080/jsTest/1.jsp","height=240,width=340,status=no,location=no,toolbar=no,directories=no,menubar=no"); 17 } 18 </script> 19 </html>