var evObj = doc.createEvent('MouseEvents'); evObj.initEvent('click', true, true); element.dispatchEvent(evObj);