var oClassObj=new new Object(); oClassObj.value="" var obj=showModalDialog("updown.htm",oClassObj,"center:yes;dialogWidth:350px; dialogHeight:40px; status:no; help:no"); if (obj!=null) { ....} else {alert("放弃")}在frmupdown.htm: <script> function CancelButton(){ window.returnValue ="OK";} </script> 在sample1.jsp中加入onload=parent.CancelButton()
var fileName=frmSave.fileName
window.returnValue=fileName
}
在index.jsp页面的引用:
function SetFileName(){
variables=window.showModalDialog(openURL,"","dialogHeight: 500px; dialogWidth:700px; help: No;status: No; scroll:no;center=yes")
frm1.fileName=variables}
oClassObj.value=""
var obj=showModalDialog("updown.htm",oClassObj,"center:yes;dialogWidth:350px; dialogHeight:40px; status:no; help:no");
if (obj!=null)
{ ....}
else
{alert("放弃")}在frmupdown.htm:
<script>
function CancelButton(){
window.returnValue ="OK";}
</script>
在sample1.jsp中加入onload=parent.CancelButton()