//for example var z = w.createEvent("MouseEvents"); z.initMouseEvent("mousedown", true, true, w.defaultView, 1, d, c, k, j, false, false, false, false, v, null); h.dispatchEvent(z);