title: Create new event from another one in Javascript NOT byRef (ie7 compatible)
body: <p>I'm trying to create a new object (event) in my javascript code from an another event (window.event). I would like to create this one new event byVal e not byRef because i need this event also window.event were dead.
  This code must be ie7 compatible.</p>
  
  <p>I tryied this but doesn't work :-(</p>
  
  <pre><code>function copyMyEvent(p) {
    if (!p) throw Error('no type');
    function f() {};
    f.prototype = p;
    return new f();
  };
  
  var event = copyMyEvent( window.event );
  </code></pre>
  
  <p>Thx</p>