25.198. Link.onclick: event handler invoked when a Link is clickedDOM Level 025.198.1. SynopsisFunction onclick 25.198.2. DescriptionThe onclick property of a Link object specifies an event-handler function that is invoked when the user clicks on the link. The browser default action after the event handler returns is to follow the hyperlink that was clicked. You can prevent this default by returning false or by using one of the other event-cancellation methods described in Chapter 17. 25.198.3. See AlsoElement.addEventListener( ), MouseEvent; Chapter 17 |