The question is pretty well represented in the title, but is it possible to do this within Javascript or is this more of an OS feature?
To be clear, I want to simulate the firing of a left mouse click, not just a random mouse click indexed as 0, 1, 2, because I want the functionality of left click. I also need access to mousedown and mouseup and not just a click as a whole action.
The difference is I want to actually fire a left mousedown and left mouse up, and not just detect it.