title: how to set onload event for ie
body: <p>I'm trying to insert javascript in my document by another javascript<br>
  I have a code:<br></p>
  
  <pre><code>
      script = document.createElement('script');
      script.type = 'text/javascript';
      script.onreadystatechange = function () {
          if (this.readyState == 'complete') proceed();
      } //this for IE but it doesn't work even for IE8
      script.onload = proceed; //this is for other browsers
  </code></pre>
  
  <p>so, how can I make it work for IE</p>