<script language="javascript">
? g_blnCheckUnload = true;
? function RunOnBeforeUnload() {
? ?? if (g_blnCheckUnload) {window.event.returnValue = 'You will lose any unsaved content';??
??? ?}?
? }
</script>
<body? onbeforeunload="RunOnBeforeUnload()">
</body>