developer sign in
where » create » reference » attribute » bgfocus

bgfocus


A style attribute defining the background color of a focused element.

Details

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

Example

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

<pr>
  <list bgfocus="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.