1.dd.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>父页</TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
function toPopup() {
showx = event.screenX - event.offsetX - 200 ;
showy = event.screenY - event.offsetY - 100 ;
var value = window.showModalDialog("kk.htm","Calendar","dialogTop:"+showy+";dialogLeft:"+showx+";dialogWidth:280px;dialogHeight:260px;status:no;resizable:no;help:no;scrollbars:no");
document.getElementById("return1").innerHTML=value;
alert(value);
}
//-->
</SCRIPT>
<INPUT TYPE="button" value="提交" οnclick="toPopup();"/>
<span id="return1"/></span>
</BODY>
</HTML>
2.kk.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
function toReturn() {
window.returnValue="返回了";
window.close();
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<INPUT TYPE="button" value="提交" οnclick="toReturn();"/>
</BODY>
</HTML>