title: window.onload in IE7
body: <p>I have this the javascript work perfectly in chrome but not work on IE7:</p>
  
  <p>The click of id icsave , not work. Nothing happens, icsave save the page normaly </p>
  
  <pre><code>window.onload = function() {
      if ($('#MODE').val() != 'U') {
          $('#MOD_BY_JS').val( % 1);
          clik('#ICSave')
      }
  };
  
  function clik(element) {
      try {
          document.getElementById(element).click();
      }
      catch (e) {
          var evt = document.createEvent("MouseEvents");
          evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
          var cb = document.getElementById(element);
          cb.dispatchEvent(evt);
      }
  };​
  </code></pre>