OnClick Event



 
Fires when the icon control is clicked.


Syntax

    function id_name::OnClick()
Remarks
    The OnClick event is only useable in a part of the script where the corresponding object is already known.
Examples
    The following example shows an alert window when the icon control is clicked.

    <html>
    <body>
    <OBJECT ID="SKFileIcon" width="16" height="16"
    CLASSID="CLSID:802B4DFC-E0AD-40DC-BFC2-EF5CB99E1291">
      <PARAM NAME="Text" VALUE="Optional text">
      <PARAM NAME="Path" VALUE="c:\programs\sitekiosk\sitekiosk.exe">
      <PARAM NAME="Small" VALUE="0">
      <PARAM NAME="Opened" VALUE="1">
      <PARAM NAME="Selected" VALUE="0">
    </OBJECT>
    <SCRIPT TYPE="text/javascript">
    function SKFileIcon::OnClick()
    {
       alert('Icon control has been clicked');
    }
    </SCRIPT>
    </body>
    </html>
    

Applies to
    SiteKiosk v5.5 (and later versions).

Back to top