title: run jquery script on page in iframe by onclick form another page
body: <p>I have this index page with 2 iframes. In one of the iframes in the page I have some links:</p>
  
  <pre><code>&lt;a href="home.html" target="content" onclick="run.slimmscroll(#anchor1);"&gt;Home&lt;/a&gt;
  &lt;a href="home.html" target="content" onclick="run.slimmscroll(#anchor2);"&gt;Home&lt;/a&gt;
  &lt;a href="home.html" target="content" onclick="run.slimmscroll(#anchor3);"&gt;Home&lt;/a&gt;
  </code></pre>
  
  <p>The <code>home.html</code> is loaded into the "content" Iframe. Now I need to execute a Jquery script on the <code>home.html</code> when it is loaded. Here is the script: </p>
  
  <pre><code>&lt;SCRIPT type="text/javascript"&gt; 
  $(window).load(function() {             
  $('#scroll').slimScroll({    
  start: $('#anchor1')
    });    
   });
  &lt;/SCRIPT&gt;
  </code></pre>
  
  <p>The idea is to get <code>home.html</code> to <code>#anchor1, 2, 3</code> and so on with smooth scrolling which it normally does on page load but I would like to do it with the <code>onclick()</code> from the other page.</p>
  
  <p>Hope you guys can help.</p>