Example of how to create a javascript "page exit warning" in a Wicket web application.