Forum Moderators: open
How would I pass "event" to the whichButton() function when I don't know the value of it yet (which is the purpose of the function)?
Something like this would work if I already knew which button was clicked:
<input type=text onFocus=whichButton(2)> or <input type=text onFocus=whichButton(event.button)>
But if I cant do that then I need to do something like this:
<input type=text onFocus=determineWhichButtonWasClicked()>
Or this:
<input type=text onRightClick=rightClick() onLeftClick=leftClick()>