I know about the document.form.button.click() method. However, I\'d like to know how to simulate the onclick event.
document.form.button.click()
onclick
I found this code somew
From the Mozilla Developer Network (MDN) documentation, HTMLElement.click() is what you're looking for. You can find out more events here.