//有确认退出
var msg_unload="您的文章内容还没有进行保存!";
var unloadConfirm = {};
unloadConfirm.SetConfirmMsg = function(confirmMsg)
{
window.onBeforeUnload = function(event)
{
event = event || window.event;
event.returnvalue = confirmMsg;
}
}
unloadConfirm.Clear = function()
{
window.onBeforeUnload = function(){};
}
unloadConfirm.SetConfirmMsg(msg_unload);
//无确认退出
window.opener=null;
window.open('','_self');
window.close();
window.open('','_self');
window.close();