Onload click the link
<p>At the moment the following code will load only when the users clicks the link.</p>

<p>I want on load of the page this to happen without the user having to click.</p>

<pre><code>&lt;script&gt;
$(document).ready(function() {
    // Support for AJAX loaded modal window
    $(document).on('click', '.btn-modal', function() {
        $.get($(this).attr('data-target'), function(data) {
            $('#modal').html(data);
            $('#modal').modal('show');
        }, 'html');
    });
});​
&lt;/script&gt;

&lt;!-- Modal window to load dynamic content --&gt;

&lt;div class="modal hide fade customDialog" id="modal"&gt;&lt;/div&gt;
&lt;a class="btn btn-modal" data-target="page.html" &gt;Launch Modal&lt;/a&gt;
</code></pre>
