onclick Event

Occurs when the left mouse button is depressed and released while the mouse pointer is inside the region contained by the object's boundaries. An onclick event can also occur by pressing the ENTER key when an object has focus. The onclick event follows the onmouseup event when it occurs as a result of a mouse button click.

Syntax

VBScriptSub spriteObj_onclick
<!--script-->
End Sub
JScript<SCRIPT LANGUAGE="JavaScript" FOR=spriteObj EVENT=onclick>
<!--script-->
</SCRIPT>

Possible Values

script
Script to be executed when the event occurs.

Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.