页面间有关系没有,如果有,那就可以处理咯~
写个简单的:
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>
写个简单的:
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><script language="javascript">
<!--//主页面的
function InputCustom(name) {
document.all.customerName.value = name;
}
//-->
</script>
</head><body>
<form name="form1">
<input type="text" id="customerName">
<a style="cursor:hand" onClick="window.open('2.html','Win_2','width=300,height=100')">选择参数</a>
</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><script language="javascript">
<!--//弹出页面
function InputCustom(name) {
opener.InputCustom(name);
opener=null;
window.close();
}
//-->
</script>
</head><body>
<form name="form1">
<input type="text" id="stefli" value="Design By Stefli">
<input type="button" onClick="Javascript:InputCustom(document.all.stefli.value)" value="提交参数">
</body>
</html>