a文件内容输去b文件,请看看代码哪里出错!!急急
130a文件代码在下:
<html><head><meta charset="utf-8"><title>Untitled Document</title></head><body><form name="myForm"> <input type="text" name="myField"></form></body></html>
<head><meta charset="utf-8"><title>Untitled Document</title><script language="javascript">function newWin() { var newWindow = window.open("130a.html","newWindow"); }</script></head><body><script language="javascript">function nAl() { var nAlert = window.alert(newWindow.document.myForm.myField.value); }</script> <a href="#" onClick="nAl()">Click me </a></body>