Skip to content
Advertisement

Submit a form with mouse middleclick button

I’m working on a system and I want to make the system easier to use. I have few forms on a page and huge tables in each. I’m not good at JS so any advice would be appreciated.

Advertisement

Answer

Use a click event listener:

JavaScript

EDIT:

As per the new jQuery tag, it’s slightly faster:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement