I know it’s a weird question, but is possible to determinate (using PHP/JavaScrip) the device’s source of the ‘check action’? I need to find out when a user click on a checkbox option, which device he/she used to do the actual click.
I hope I made sense here.
With Javascript, this is easy. You can attach click and keydown events to the checkbox (
onclick,onkeydown, or use jQuery if you want) and they will be triggered on click or keydown. By “click” with the keyboard I assume you mean highlighting the checkbox via tabbing and pressing space. This will still trigger the keydown event, but not the click.