你可以试试 onbeforeunload 事件里提交表单呀<script language=javascript>
function window.onbeforeunload()
{
if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
{
document.forms[0].submit();
}
}
</script>
function window.onbeforeunload()
{
if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
{
document.forms[0].submit();
}
}
</script>
<form action=b.asp target=bb>
<div onclick="this.form.submit();">提交</div>
.........
</form>
<script>
function closewin()
{
window.opener=null;
window.close();
}
</script>
<iframe id=bb name=bb width=0 height=0></iframe>
b.asp
.....
<body onload="parent.closewin()">
....