我用的不是window.open,是要在本页面。 function window.onbeforeunload() { if (event.clientX>document.body.clientWidth && event.clientY<0||event.altKey){ window.event.returnValue="È·¶¨ÒªÍ˳ö±¾Ò³Âð£¿"; new ActiveXObject("WScript.Shell").sendKeys("{ESC}")} } 用这个函数要出现一个对话框,有办法去掉吗。。
function window.onbeforeunload()
{
if (event.clientX>document.body.clientWidth && event.clientY<0||event.altKey){
window.event.returnValue="È·¶¨ÒªÍ˳ö±¾Ò³Âð£¿";
new ActiveXObject("WScript.Shell").sendKeys("{ESC}")}
}
用这个函数要出现一个对话框,有办法去掉吗。。