<script type="text/javascript">window.onbeforeunload = function() { if(g_blnCheckUnload) return ("确认离开当前页面吗?未保存的数据将会丢失!");}</script>
<script type="text/javascript">window.onbeforeunload = function() { if(g_blnCheckUnload) return ("确认离开当前页面吗?未保存的数据将会丢失!");}</script>
转载于:https://www.cnblogs.com/JemBai/archive/2009/04/09/1432483.html