Answers for "javascript document click"

1

javascript trigger click on element

document.getElementById('myElementID').click();
Posted by: Guest on January-10-2020
0

javascript click button by id

var button = document.getElementById("button");
button.click();
Posted by: Guest on May-20-2020
-1

javascript perform 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);
  }
}
Posted by: Guest on May-06-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language