content

The content method has two modes of operation.
1. If you call it without any arguments, it will return a String value, containing the html content of the window widget.
2. User can pass one or more parameters of type String or jQuery object to the method, it will make them an html content of the window widget.

These are demonstrated in the sample below:

<div id="window" />

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

    //alert the html content of the window widget
    alert(window.content());

    //change the html content of the window widget
    window.content('Hello World!');

    //alert the new html content of the window widget
    alert(window.content());
});
</script>