try
window.opener.document.all.id.value = this.value
解决方案 »
- 请教一个关于iframe src 问题,谢谢
- jquery 绑定 onload事件,如何用jquery处理网页后再重新显示,如何让网站不先出现处理前的信息?
- 如何让showmodaldialog位置固定,用户不能移动拖拽
- 在多个table中间动态加一个table
- 写不出一个更改图片的函数说?
- 十万火急,没有遇到过的情况!!!!!!!!!!!!!!!!!!!!!!
- ●请问哪位大侠有yahoo首页左上角的天气预报代码?
- easyui里的dialog怎么可以在最顶端显示
- 如何用JavaScript把一个页面的工具栏,菜单都去了?
- EasyUI TreeGrid 前端添加节点,如何可以拖动
- 动态层大小的设定,效果为什么不显示出来?
- window.open 问题
<HTML><BODY>
<input type="text" id="txt" size=20>
<input type="text" id="txt1" size=20>
<button onclick="echo()">input</button>
<script>
function echo() {
x = showModalDialog("testnew.html",new Array(txt.value, txt1.value));
txt.value = x[0];//.txt1;
txt1.value = x[1];//.txt2;
}
</script>
</BODY></HTML>
这个是子页面 testnew.html<HTML><BODY>
<input type="text" name="dlgtxt">
<input type="text" name="dlgtxt1">
<button onclick="doSomething()">do somthing</button>
<script>
dlgtxt.value = window.dialogArguments[0];
dlgtxt1.value = window.dialogArguments[1];function doSomething(){
var m_data = new Object;
m_data.txt1 = dlgtxt.value;
m_data.txt2 = dlgtxt1.value;
window.returnValue = [dlgtxt.value, dlgtxt1.value];
close();
}
</script>
</BODY></HTML>