title: How to call jquery plugin on page load
body: <p>I am trying to call a jquery (avgrund) modal window plugin on page load but I am not sure how to do it, here is what I have so far; the page for the plugin calls the plugin on button click but I wan't it to execute on page load...</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
  Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html lang="en" class="no-js"&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt; 
      &lt;link rel="stylesheet" type="text/css" href="AvgrundModal/avgrund.css" /&gt; 
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="avtest"&gt;NO RESULTS&lt;/div&gt;
  
      &lt;!-- Include JavaScript file --&gt;
      &lt;script src="AvgrundModal/jquery.avgrund.js"&gt;&lt;/script&gt;
      &lt;script&gt;
          $(document).ready(function(){
          $('#avtest').avgrund();
          });
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The link to the plugin is here...
  <a href="http://labs.voronianski.com/jquery.avgrund.js/" rel="nofollow">http://labs.voronianski.com/jquery.avgrund.js/</a></p>