SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2002
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    onblur with select

    Anyone know why this doesn't work in IE5/5 but does in Netscape4+?

    Code:
     <select size=1 name=month onchange=this.blur()>
    The reason for attempting this is because users with a wheel mouse often select a date and then try to scroll down. Because their focus is still in the select box, the date changes. Often the user doesn't even notice this. So, I want the focus to be removed once the date has changed.

    TIA, brian

  2. #2
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi brian,

    Not having a wheel, I can't really test. However, you might try the following instead:

    document.formName.nextFieldName.focus();

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2002
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes this works. Just wondering why the onblur doesn't.

    Doesn't really matter though


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
  •