标签: javascript
我想在onbeforeunload功能
onbeforeunload
window.onbeforeunload = function() { if(changes){ return 'Are you sure you want to leave without saving changes?'; } }
但它显示默认消息,是否有可能覆盖它?