1.htm<script language=javascript>
function chuan()
{
text=document.all.haha.value;
iframe1.document.all.haha2.value=text;
}
</script>
<iframe name=iframe1 src="3.htm">
</iframe>
<input name=haha>
<input name=button1 type=button onclick=chuan()>3.htm
<input name=haha2>
function chuan()
{
text=document.all.haha.value;
iframe1.document.all.haha2.value=text;
}
</script>
<iframe name=iframe1 src="3.htm">
</iframe>
<input name=haha>
<input name=button1 type=button onclick=chuan()>3.htm
<input name=haha2>
XXX.Button1.click();