/

HTML / CSS / JavaScript Tutorial

HTML Event attribute: onclick

[this page | pdf | back links]

The HTML onclick attribute specifies the event that is triggered when an element is clicked (mouse clicked). It applies to all visible elements.

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile