close

The close method closes the window widget.

This is demonstrated in the sample below:

<div id="window" />

<script type="text/javascript">
jQuery(function($) {
    var window = $("#window").shieldWindow({
        title: "Window Title"
    }).swidget();

    //alert the control has been created
    alert('window created');

    //this will close the window
    window.close();

    //alert window has been closed
    alert('window closed');
});
</script>