close

This event is fired before the window is closed. The close event can be cancelled.

In this example, we attach to the close event and show message:

<div id="window" />

<script type="text/javascript">
jQuery(function($) {
    $('#window').shieldWindow({
        title: "Window Title",
        events: {
            close: function(e) {
                  alert('window is being closed.');
            }
        }
    });
});
</script>