Focusable elements

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jura

    Focusable elements

    Is there a way to find out can an element receive focus?

    I'm doing somthing like:
    form[0].element[i].focus();

    if element[i] is for instance INPUT type="hidden" everything falls apart

    Thanks
  • Martin Honnen

    #2
    Re: Focusable elements



    jura wrote:
    [color=blue]
    > Is there a way to find out can an element receive focus?
    >
    > I'm doing somthing like:
    > form[0].element[i].focus();
    >
    > if element[i] is for instance INPUT type="hidden" everything falls apart[/color]

    if (document.forms[0].elements[i].focus)
    document.forms[0].elements[i].focus();
    --

    Martin Honnen


    Comment

    Working...