onClick

Description: This handler is triggered when either a Form object is clicked upon or the handler is placed within an <href> tag and the image or text link is clicked on.

Syntax: onClick="code to be executed"

Implemented in: Navigator 2.0/3.0

Used within: Button, Document, Checkbox, Link, Radio, Reset, Submit

Get Essential JavaScript™ for Web Professionals, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.