All pastes #765783 Raw Edit

harobed

public text v1 · immutable
·published 2007-11-08 10:43 UTC
rendered paste body
            var evt = document.createEvent('MouseEvents');
            if (evt.initMouseEvent)
            {

                evt.initMouseEvent(eventType, canBubble, true, document.defaultView, 1, screenX, screenY, clientX, clientY,
                    this.controlKeyDown, this.altKeyDown, this.shiftKeyDown, this.metaKeyDown, 0, null);
            }
            element.dispatchEvent(evt);