This works in IE:
In the <BODY> tag:<body OnUnload="DoStuff()">
Then have a subroutine that let's the user know what the problem is (or whatever you want):
<script language="VBscript">
Sub DoStuff()
alert "Hey, you forgot to do whatever"
window.navigate "thispage.asp" 'Whatever your pagename is - keep them here
End Sub
</script>
Instead of an alert you could use a messagebox and do different things based on the response.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.