81,092
社区成员
发帖
与我相关
我的任务
分享
[quote=引用 6 楼 tatawangtao 的回复:] 不知道你是不是这个意思 a.htmlb.html<html> <body> <div> name<input type="text" id="name"/> </div> <div> <input type="button" value="open b.html" onclick="javascript:window.open('b.html');"/> </div> </body> </html>
<html> <head> </head> <body> <div> <input type="button" value="set name in a.html" onclick="javascript:window.opener.document.getElementById('name').value='CSDN'";/> </div> </body> </html>
不知道你是不是这个意思 a.htmlb.html<html> <body> <div> name<input type="text" id="name"/> </div> <div> <input type="button" value="open b.html" onclick="javascript:window.open('b.html');"/> </div> </body> </html>
<html> <head> </head> <body> <div> <input type="button" value="set name in a.html" onclick="javascript:window.opener.document.getElementById('name').value='CSDN'";/> </div> </body> </html>
<html>
<body>
<div>
name<input type="text" id="name"/>
</div>
<div>
<input type="button" value="open b.html" onclick="javascript:window.open('b.html');"/>
</div>
</body>
</html>
b.html
<html>
<head>
</head>
<body>
<div>
<input type="button" value="set name in a.html" onclick="javascript:window.opener.document.getElementById('name').value='CSDN'";/>
</div>
</body>
</html>
楼主自己在网上查资料吧。。。ajax
用ajax试试~~~