<head>
<title>parent</title>
</head>
<body>
<a href="children.html" target="_chat">聊天</a>
<input type="text" id="parent_input" value="把我传到子页面">
</body>
<head >
<title>child</title>
</head>
<body>
<input type="text" id="child_input" value="把我传到父页面">
</body>
子页面打开之后,父页面给子页面传个值。然后子页面3秒之后再传给父页面一个值放在input里面。
网上看了很多都是window.showModalDialog(url,obj,dialog);这样写法。我这种不需要再重新打开一个小窗口。那怎么做呢