Element with focus

Results 1 to 2 of 2

Thread: Element with focus

  1. #1
    Join Date
    Dec 1969

    Default Element with focus

    &nbsp;<BR>How can I return the active element in a form? I thought it would be something simple like document.forms[0].currentelement, but can&#039;t find anything in the DOM. Anyone know?

  2. #2
    Join Date
    Dec 1969

    Default RE: Element with focus

    IIRC, you can&#039;t, but you CAN keep track of them by having an onfocus/onblur pair in each form element and manually keeping track of it.<BR><BR>or, and this is from dim distant memory, you might be able to loop through all elements of the form and check .hasFocus (? am I sure? no. but maybe)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts