如何在弹出的窗口中访问父窗口中元素 window.showModalDialog("test",document.formName.inpyName.value) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 详细参见http://www.csdn.net/Develop/read_article.asp?id=15113 window.showModalDialog("test", window),把window当参数传过去 例如:window.showModalDialog("test",document.form1.input1.value) 例:<input type=text name=txt><input type=button value=test onClick="test()"><script>function test() { window.showModalDialog("test.htm",window)}</script>test.htm<input type=text name=txt><input type=button value=test onClick="test()"><script>function test() { var parentWin = window.dialogArguments; parentWin.document.all.txt.value = document.all.txt.value;}</script> window.open跳转问题 关于jquery编写控件问题 NaN和Infinity的问题 正则替换后写入文件不对啊 关于JS操作客户端的问题,请大家指教~~ 比起来 Js真是简陋啊....郁闷啊~~~ 如何在FIREFOX下实现copy and paste(一百分赠送啊) Extjs如何给下拉列表控件(Appcombox),绑定一个文本改变发生的事件 我要监听每一个text域的变化。怎么做呢 在JavaScript中arguments代表什么意思? htc 问题 请问在javascript中有方法实现跳转到其他页面吗?
<input type=text name=txt>
<input type=button value=test onClick="test()"><script>
function test() {
window.showModalDialog("test.htm",window)
}
</script>test.htm
<input type=text name=txt>
<input type=button value=test onClick="test()"><script>
function test() {
var parentWin = window.dialogArguments;
parentWin.document.all.txt.value = document.all.txt.value;
}
</script>