3 ms·
thebutton.dispatchEvent( new MouseEvent('click', {clientX:(r.left+r.right)/2, clientY:(r.top+r.bottom)/2})); Or something along those lines!! :)
by humanarity 12y ago
thebutton.dispatchEvent( new MouseEvent('click', {clientX:(r.left+r.right)/2, clientY:(r.top+r.bottom)/2}));
Or something along those lines!! :)