title: JavaScript onload function call suddenly produces "Object expected"
body: <p>The following onload function call was working:   </p>
  
  <pre><code>
      &lt;script type="text/javascript"&gt;   
      function frameloaded() {  
         if (parent.leftframe) {  
            parent.leftframe.reportRightFrameReloaded();  
         }  
      }  
      &lt;/script&gt;      
      &lt;/head&gt;    
      &lt;body onload="frameloaded();"&gt;  
   .... etc.
  </code></pre>
  
  <p>until I added an external javascript reference </p>
  
  <pre><code> 
      &lt;script type="text/javascript" src="sorttable.js"&gt;&lt;/script&lt; 
  </code></pre>   
  
  <p>immediately before it. Then suddenly it started giving me "Object expected" in IE (I have IE8) and simply stopped working in Firefox (3.6.3). I figured there was a duplicate function name in the included file, so I gave it a random name and it still failed. I tried using   </p>
  
  <pre><code>
      onload="this.frameloaded();"   
  </code></pre>
  
  <p>and   </p>
  
  <pre><code>
      onload="document.frameloaded();"   
  </code></pre>
  
  <p>with no luck.<br>
  I tried moving my function above the included statement, but just got an empty frame.  </p>
  
  <p>Any ideas?
  Thanks!</p>