首先a页面
<html>
<head>
<title>无标题文档</title>
<script type="text/javascript">
function aa ()
{
//window.window.showModelDialog('bb.html',window,'width=400,height=100,menubar=no,toolbar=no, location=no,
//directories=no,status=no,scrollbars=yes,resizable=ye');
open('bb.html','_blank','width=400,height=100,menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes')
}
</script>
</head>
<body>
<form action="" name="myform" method="get">
<input name="txtaa" id="aaaa" type="text" />
</form>
<a href="javascript:" οnclick="aa()">window</a>
</body>
</html>
在一个b页面
<html>
<head>
<title>无标题文档</title>
<script type="text/javascript">{
function cc(){window.opener.document.getElementById("aaaa").value="1000898989";
}
</script>
</head>
<body>
<a href="javascript:cc()">window</a>
</body>
</html>
呵呵,简单的实现了传值。