I wrote a clicker. Got code to work yesterday!!! I gather the preferred method is now to use the mouseevent. Looking at this code reveals event is set twice which is a mystery to me.
/* based on:
https://stackoverflow.com/questions/902713/how-do-i-programmatically-click-a-link-with-javascript
*/
function clickAnchorTag(inputObj) {
var event = document.createEvent('MouseEvent');
console.log ("proceeding to set new event")
event = new CustomEvent('click');
console.log ("clicking...")
inputObj.dispatchEvent(event);
}
` /* original version
function clickAnchorTag() {
var event = document.createEvent('MouseEvent');
event = new CustomEvent('click');
var a = document.getElementById('nameOfID');
a.dispatchEvent(event);
}
*/
`
@"Megga Boussol" a dit : /ConfirmeIf/ setInterval(function(){if ( document.getElementById("ajaxConfirmCall_submit") !== null ) {document.getElementById("ajaxConfirmCall_submit").click(); } }, 1000);
c ta dire
@"moi mem" a dit :
@"Megga Boussol" a dit : /ConfirmeIf/ setInterval(function(){if ( document.getElementById("ajaxConfirmCall_submit") !== null ) {document.getElementById("ajaxConfirmCall_submit").click(); } }, 1000);
c ta dire
need your help
AutoSubmit(AutoConfirme)ForTLSalgeria
/ConfirmeIf/ setInterval(function(){if ( document.getElementById("ajaxConfirmCall_submit") !== null ) {document.getElementById("ajaxConfirmCall_submit").click(); } }, 1000);