onchange事件不能触发
下边是两个HTML代码,可是onchange事件触发不了,求大神帮帮忙!<HTML>
<HEAD>
<TITLE>main document</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function newWindow(){
window.open("subwind.html","sub","HEIGHT=200,WIDTH=200")
}
</SCRIPT>
</HEAD>
<BODY>
<FORM>
<INPUT TYPE="button"VALUE="New Window"onClick="newWindow()">
<BR>
Text incoming from subwindow:
<INPUT TYPE="text" NAME="entry">
</FORM>
</BODY>
</HTML>
第二个::
<HTML>
<HEAD>
<TITLE>A SUBDOCUMENT</TITLE>
</HEAD>
<BODY>
<FORM onSubmit="return false">
Enter text to be copied to the main window:
<INPUT TYPE="text" onChange="opener.document.forms.[0].entry.value = this.value">
</FORM>
</BODY>
</HTML>
[ 本帖最后由 小一一 于 2015-8-22 10:15 编辑 ]