Text Property



 
The Text property contains the text of the StaticText ActiveX control.


Syntax

    document.all["id_name"].Text [=String] 
Possible Values
    String that specifies or retrieves the text.

    The property is read/write.
Remarks
    None.
Examples
    The following example changes the default text after 10 seconds.

    <html>
    <head>
    </head>
    <body>
    <OBJECT id="id_StaticText" width="170" height="12" 
    style="padding:0; margin:0; display:inline;" 
    classid="CLSID:2D6F85AB-07AB-4417-85E3-7F2400474A63">
    	<PARAM NAME="BackStyle" VALUE="0">
    	<PARAM NAME="BackColor" VALUE="0">
    	<PARAM NAME="FontName" VALUE="Times New Roman">
    	<PARAM NAME="FontSize" VALUE="8.00">
    	<PARAM NAME="FontBold" VALUE="0">
    	<PARAM NAME="FontItalic" VALUE="0">
    	<PARAM NAME="FontUnderline" VALUE="0">
    	<PARAM NAME="FontWeight" VALUE="500">
    	<PARAM NAME="ForeColor" VALUE="0">
    	<PARAM NAME="Text" VALUE="Default text if necessary">
    </OBJECT>
    <SCRIPT TYPE="text/javascript">
    function chText()
    {
       mysentence = "This sentence is too long and will be changed.";
       document.all['id_StaticText'].Text = mysentence;
    }
    window.setTimeout("chText()", 2000);
    </SCRIPT>
    </body>
    </html>
    

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

Back to top