INPUT /  OUTPUT /  LANGUAGE





onClick field

Code field

Code carried out when the user clicks a tag.

Applies to...

Sample usage

Behaviour

A code field: holds code to be carried out each time the event happens. Add code after the tag is created with .push.

A click is a press and release of the left mouse button over the tag. Several tags can be listed, separated by commas; they are carried out in order.

Notes

Assigning code to onClick with <b.onClick <...>> carries the code out immediately instead of storing it. Use .push to add code to an existing tag.

See also