阅读背景:

提示用户在离开页面时进行保存

来源:互联网 

I need to prompt a user to save their work when they leave a page. I've tried onbeforeunload but I need to show a styled prompt not the usual dialog box. Facebook has managed to achieve this (if you have a Facebook account, edit your profile info and go to another page without saving and you get a styled prompt). I've also tried jquery unload but there doesn't seem to be a way to stop the unload event from propagating. I need to prompt a user to save their work when




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: