How to call a function automatically on document ready event in jQuery
<p>I m having following Code in which this code executes when i click a anchor tag named msgup</p>

<pre><code>    $("#msgup").bar({
        color : '#1E90FF',
        background_color : '#FFFFFF',
        removebutton     : false,
        message : 'Your profile customization has been saved!',
        time: 4000

});
</code></pre>

<p>But I want to do this thing automatically when page loads , so what is required to achieve such workflow?</p>

<p>Actually i m using jBar plugin to show stackoverflow type notifications at top of the page.</p>
