ForeColor Property



 
The BackColor property contains the color for the text used in the address field.


Syntax

    document.all["id_name"].ForeColor [=color]
    
Possible Values
    ColorValue that specifies or retrieves the text color.

    The property is read/write.
Remarks
    ColorValue: An RGB (Red, Green, Blue) 32-bit color value that defines a solid color. Each of the Red, Green, Blue portions represents the color intensity between 0 and 255 (or 0x00 to 0xff hexadecimal). The RGB color value can be calculated: ColorValue = Red + Green*256 + Blue*65536. Please note that this representation differs from HTML color values, which are hexadecimal RRGGBB.
Examples
    The following example shows the BackColor property when the link is clicked.

    <html>
    <head>
    <SCRIPT TYPE="text/javascript">
    function ShowProp()
    {
       alert(document.all['URLComboBox'].ForeColor);
    }
    </SCRIPT>
    </head>
    <body>
    <OBJECT ID="URLComboBox" width="300" height="22px"
    CLASSID="CLSID:973BD82B-0F81-4C42-A222-C42CA47DA1D3">
      <PARAM NAME="BackColor" value="16777215">
      <PARAM NAME="FontName" VALUE="Tahoma">
      <PARAM NAME="FontSize" VALUE="8.00">
      <PARAM NAME="FontBold" VALUE="0">
      <PARAM NAME="FontItalic" VALUE="0">
      <PARAM NAME="ForeColor" VALUE="65280">
    </OBJECT>
    <br><br>
    <a href="javascript:ShowProp()">Show ForeColor property</a>
    </body>
    </html>
    

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

Back to top