test1.html:var param = new Object();
param.paravalue = "";
if (showModalDialog("","",param)){
//这里可以用param.paravalue 取值}
test2.html 关闭时:
parent.dialogArguments.paravalue = t2.value;
上面只是大概意思,具体的LZ自己写
param.paravalue = "";
if (showModalDialog("","",param)){
//这里可以用param.paravalue 取值}
test2.html 关闭时:
parent.dialogArguments.paravalue = t2.value;
上面只是大概意思,具体的LZ自己写
{
opener.getElementById('t1').value=window.getElementById('t2').value;
}
var a = window.showModalDialog("test5.htm")
在text5.htm里
window.returnValue="1234"aaa.html取a的值就是取1234
var a = window.showModalDialog("test5.htm")
在text5.htm里
window.returnValue=document.getElementById("textName").valueaaa.html取a的值就是
<script>
function ShowNewWindow()
{
var returnValue = window.ShowModalDialog("test2.htm","","");
if(returnValue != null)
{
document.all["t1"].value = returnValue;
}
}
</script>test2中.中body 的onunload事件中,或客户端按
钮事件调用CloseNewWindow方法<script>
function CloseNewWindow()
{
window.returnValue = document.all["t2"].value;
window.close();
}
</script>