179k views
2 votes
True/False

Writing an event handler for a menu item is the same as writing an event handler for a button tap or click.

User DWattimena
by
4.8k points

1 Answer

3 votes

Answer:

True

Step-by-step explanation:

Event handlers are basically functions that are triggered when an event occurs, example of events are click, drag, mouseover, etc. the two items (menu item and button) are usually triggered by the same type of event, which is the click event, and besides event handlers are nothing but functions that are executed/triggered when an event occurs. They are both functions and they are both triggered by a click event.

User Bytebrite
by
5.5k points