1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| function getEvent() { if (document.all) { var iEevent = window.event; iEevent.target = window.event.srcElement; return iEevent; } var func = getEvent.caller; while (func != null) { var arg0 = func.arguments[0]; if (arg0) { if ((arg0.constructor == Event || arg0.constructor == MouseEvent) || (typeof(arg0) == "object" && arg0.preventDefault && arg0.stopPropagation)) { return arg0; } } func = func.caller; } return null; }
|