Lostinet(www)(调查显示:我不是人)(com) :我错了。
Muzhu 2002-08-11 05:18:17 parent.html:
<form name="Form1">
<input name="TextBox1" value="abc">
<input type="button" value="open" onclick="openWin()">
</form>
<script language="javascript">
function openWin()
{
var ret = showModalDialog("child.html",[window]);
}
</script>
child.html:
<script>
//alert(dialogArguments[0].document.Form1.TextBox1.value);
</script>
<a href="child2.html" target="mywin">Child2</a>
<iframe src="child2.html" name="mywin"></iframe>
child2.html:
<input type="button" value="set value" onclick="parent.dialogArguments[0].document.Form1.TextBox1.value='2333';">
可以。
Lostinet(www)(调查显示:我不是人)(com) :
我错了。