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()