离开某页面时提醒

window.onbeforeunload=function(e){
  return (e||window.event).returnValue='确认离开页面?!!'
}io

相关文章
相关标签/搜索