can you set focus to a custom custom element?

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

    can you set focus to a custom custom element?

    hi,

    I can use the following code to set focus to standard html elements
    but if I try to do the same for a custom element, it seems to complain
    that it does not support a focus method. Does anyone know what is the
    problem, if there is a work around?

    thank you


    <SCRIPT language='javas cript'>
    document.getEle mentById('" + ctrl.ID + "').focus()
    </SCRIPT>
  • Lachlan Hunt

    #2
    Re: can you set focus to a custom custom element?

    Phl wrote:[color=blue]
    > I can use the following code to set focus to standard html elements
    > but if I try to do the same for a custom element,[/color]

    Please explain what you mean by a custom element? In HTML you should
    only be using standard HTML elements, but in XHTML I believe that you
    may use any XML element provided that you declare an appropriate namespace.

    Comment

    Working...