1.html
---------------------------------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META NAME="Author" CONTENT="stefli,^_^stefli">
<META NAME="Description" CONTENT="http://www2.gliet.edu.cn/gdhq/kudesign/">
<title>页面传递参数</title>
</head>
<body>
<form name="form1">
<input type="text" id="stefli">
<input type="button" onClick="window.open('2.html','Win_2','width=300,height=100')" (//打开第二个页面) value="选择参数">
</body>
</html>
2.html
---------------------------------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META NAME="Author" CONTENT="stefli,^_^stefli">
<META NAME="Description" CONTENT="http://www2.gliet.edu.cn/gdhq/kudesign/">
<title>页面传递参数</title>
</head>
<body>
<form name="form1">
<input type="text" id="stefli" value="Design By Stefli">
<input type="button" onClick="opener.document.form1.stefli.value=document.form1.stefli.value;opener=null;window.close()" value="提交参数">
</body>
</html>
---------------------------------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META NAME="Author" CONTENT="stefli,^_^stefli">
<META NAME="Description" CONTENT="http://www2.gliet.edu.cn/gdhq/kudesign/">
<title>页面传递参数</title>
</head>
<body>
<form name="form1">
<input type="text" id="stefli">
<input type="button" onClick="window.open('2.html','Win_2','width=300,height=100')" (//打开第二个页面) value="选择参数">
</body>
</html>
2.html
---------------------------------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META NAME="Author" CONTENT="stefli,^_^stefli">
<META NAME="Description" CONTENT="http://www2.gliet.edu.cn/gdhq/kudesign/">
<title>页面传递参数</title>
</head>
<body>
<form name="form1">
<input type="text" id="stefli" value="Design By Stefli">
<input type="button" onClick="opener.document.form1.stefli.value=document.form1.stefli.value;opener=null;window.close()" value="提交参数">
</body>
</html>