developer sign in
where » create » reference » attributes » fgfocus

fgfocus


A style attribute defining the foreground color of a focused element. Currently, the foreground color is always the font color

Details

  • Only elements that accept focus will apply a fgfocus attribute.
  • If no value is set, the fgfocus attribute assumes the value of the fg attribute.
  • As a style attribute, the fgfocus value cascades to child elements.
  • Valid values are "0x000000" through "0xFFFFFF".

Example

<pr>
   <input type="button" fgfocus="0xFF0000" value="Red When Focused" onSelect="doSomething()" />
</pr>

<pr>
  <list fgfocus="0x005500" border="1">
    <listitem>
      <text>Listitem 1</text>
    </listitem>
    <listitem>
      <text>Listitem 2</text>
    </listitem>
    <listitem>
      <text>Listitem 3</text>
    </listitem>
  </list>
</pr>
terms of use | privacy policy | about | FAQ | blog | jobs | contact us
For 24/7 support email support@where.com or call 888-262-1150
WHERE™ is a product from uLocate Communications, Inc. ©2007 All Rights Reserved.