HTML and CSS Reference
Unless the browser is Microsoft Internet Explorer, a reference to the event object
is passed as a parameter called e . Internet Explorer uses the event property of the
window object to get the value of e .
If not Internet Explorer, the which property contains a value representing the
If Internet Explorer, the button property contains that value.
The switch statement is used to determine which button was clicked. See Figures
13.38 and 13.39.
Figure 13.38 The left mouse button was clicked in the green box (Internet Explorer). The
value was 1.
Figure 13.39 The right mouse button was clicked in the green box (Internet Explorer). The
value was 2.