请教高手,如何判断在发生onbeforeunload事件时用户的操作?即用户是确定还是取消?我想实现当确定后进行页面跳转,但是没有成功,现有代码如下:function actionOnunload() {    return '是否离开当前页面?';
}谢谢!