Most of the time,we use DOMElement.click():
button.click()
Actually it is a shortcut for:
button.dispatchEvent( new MouseEvent('click', { bubble: true, cancelable: true, composed: true,
button: 0 }) )
2023-10-03 16:54:22
Most of the time,we use DOMElement.click():
button.click()
Actually it is a shortcut for:
button.dispatchEvent( new MouseEvent('click', { bubble: true, cancelable: true, composed: true,
button: 0 }) )