Section 25.198. Link.onclick: event handler invoked when a Link is clicked


25.198. Link.onclick: event handler invoked when a Link is clicked

DOM Level 0

25.198.1. Synopsis

 Function onclick 

25.198.2. Description

The 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 Also

Element.addEventListener( ), MouseEvent; Chapter 17




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net