Skip to content
Advertisement

Tag: mouseclick-event

How to simulate a mouse click using JavaScript?

I know about the document.form.button.click() method. However, I’d like to know how to simulate the onclick event. I found this code somewhere here on Stack Overflow, but I don’t know how to use it 🙁 How do I fire a mouse click event using JavaScript? Answer (Modified version to make it work without prototype.js) You can use it like this: Note

Advertisement