Javascript: Determining what event causes an action

128 views Asked by At

In Google slides we interact with the document using div elements that are pretending to be buttons.

<div role="button" id=".." ..>...</div>

For example, we click on the present button using the mouse in the top right hand side of the page then the presentation begins (slide goes full screen etc...).

enter image description here

However, when firing a click event (with either javascript or jquery), the click is detected but the presentation is not started. So this action isn't initiated when click event is fired (note, it is not the mouseup / mousedown events either).

How can I determine what event is actually causing the presentation to start?

0

There are 0 answers