Form-auto-focus
From Frontal Wiki
Contents |
Purpose
This 'form' tag style determines if a form element will auto focus one of its inputs upon reset.
Value
Either "true" or "false". The default value is "true".
form-auto-focus: true;
Remarks
In order for this style to have an effect, the associated 'form' tag must be resettable. See the wants-reset style for more details.
Example
<style><![CDATA[ manager { hide-unselected: true; } form { wants-reset: true; form-auto-focus: true; } ]]></style> <div> <manager id="mgr" /> Form not selected. <form> Form selected. <input tabIndex="1" type="text" /> </form> </div> <text class="frButtonNext" mgrId="mgr"><![CDATA[Click to for next.]]></text>
See Also
Can Be Applied To
This style can be applied to any visual element: