Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] Event Listener ++ onblur event of text field ++

Expand Messages
  • Adam Moore
    ... Use blur instead of onblur : YAHOO.util.Event.addListener( tab1 , blur , grabfocus); -Adam
    Message 1 of 2 , Apr 30 11:31 AM
    View Source
    • 0 Attachment
      On Sat, Apr 28, 2007 at 03:21:17AM -0700, pannet1@... wrote:
      > Dear List,
      >
      > I am trying to use the event listener for changing focus to specific fields on my form. In the below example
      > I want to shift the focus from text field tab1 to tab3. But the YAHOO.util.Event.addListener("tab1","onblur", grabfocus);
      > never seems to work.

      Use "blur" instead of "onblur":

      YAHOO.util.Event.addListener("tab1", "blur", grabfocus);

      -Adam
    Your message has been successfully submitted and would be delivered to recipients shortly.