Simule um clique do usuário
// element.click simulates an user click
// doesn't work on <a> tags
document.getElementById("myCheck").click();
Bloody Bug
// element.click simulates an user click
// doesn't work on <a> tags
document.getElementById("myCheck").click();
eventFire(document.getElementById('mytest1'), 'click');
function eventFire(el, etype){
if (el.fireEvent) {
el.fireEvent('on' + etype);
} else {
var evObj = document.createEvent('Events');
evObj.initEvent(etype, true, false);
el.dispatchEvent(evObj);
}
}
erter
wewrwe]er
dfsd
fds
f
sd
fs