SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2004
    Location
    Bloomington, IL
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can onFocus be counted on prior to form data change?

    Hello,

    I'm curious if their are instances where a user might change form data without first focusing on the form element. For instance, can it be counted on that an input field will be focused (onFocus) prior to its value being changed?

    I know that it can't be counted on to be secure, but for general use by everyday users, can one assume an element's onFocus event will be triggered prior to the user changing form data? If not, in what scenarios isn't this the case?

    Thanks

  2. #2
    SitePoint Enthusiast
    Join Date
    Aug 2004
    Location
    Bloomington, IL
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I thought of one...extensions that automatically fill out forms. This could be corrected for with onChange.

    Can you think of any other instances where this might be the case?


Bookmarks

Posting Permissions

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