<script language="Javascript">
function window.onbeforeunload()
{
event.returnValue = "[你要提示的文字]";
}
</script>
function window.onbeforeunload()
{
event.returnValue = "[你要提示的文字]";
}
</script>
</body>对象上需要加上
<frame name="leftFrame" noresize src="left.jsp">
<frameset rows="23,*" frameborder="NO" border="0" framespacing="0" cols="*">
<frame name="topFrame" noresize scrolling="NO" src="top.jsp">
<frame name="mainFrame" src="main.jsp">
</frameset>
</frameset>
谢!
<script>
function window.onbeforeunload()
{
question = confirm("Are you sure to EXIT?");
if (question != "1") {
window.event.returnValue="Click OK to EXIT System, or Click Cancel to leave!";
}
}
</script>
</head>
function window.onbeforeunload()
{
if(event.clientX>360&&event.clientY<0||event.altKey)
{
if( !confirm("确定关闭?") )
{
.
.
.
}
}
}
function window.onbeforeunload()
{
if(event.clientX>360&&event.clientY<0||event.altKey)
{
window.event.returnValue="Click OK to EXIT System, or Click Cancel to leave!";
}
}