Call function in document.ready
<p>Can I call function in  document.ready(function(){ })  by using "onclick" event...?</p>

<pre><code>      document.ready(function(){
      function MyFunction()
                {
                  alert("Hello");
                }
                });

&lt;a href="#" onclick="javascript:MyFunction()"&gt;&lt;/a&gt;
</code></pre>
