<script><br> function closeIt()<br> {<br> return "Any string value here forces a dialog box to n" <br> "appear before closing the window." ;<br> }<br> window.onbeforeunload = closeIt;<br></script>
Click here to navigate to
www.jb51.net
Compatible with FF, IE, and Chrome js detection for leaving or refreshing the page,