title: Reloading an HTML element with a Javascript function
body: <p>I have a flash object embedded inside a DIV. Now I want to use a link('a' tag) above that div for the user to be able to reload that flash dialer, or more specifically the div tag it is contained in(I cannot change the flash file in any way).</p>
  
  <p>I've tried using this JS function below, but it does not work(does not reload the div and contents when hitting the 'reload' link.</p>
  
  <pre><code>&lt;div class="userProfile"&gt;
  &lt;script type="text/javascript"&gt;
       function refreshDialer(){
               document.getElementById("dialerDiv1").contentWindow.location.reload(true);
              }
  &lt;/script&gt;
  &lt;a href="javascript: refreshDialer()"&gt;Reload&lt;/a&gt;
  &lt;div id="dialerDiv1"&gt;
      &lt;embed type="application/x-shockwave-flash" wmode="opaque"                     
              src="http://dummysite.com"
              width="301"
              height="401"
              id="popUpSwf"
              name="popUpSwf"
              quality="high"
              border="none"
              allowscriptaccess="always"
                              pluginspage="http://www.adobe.com/go/getflashplayer"
              scale="noscale"
              menu="false"
              flashvars="#" /&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What am I doing wrong here?</p>
  
  <p>Thanks</p>