Saturday, December 22, 2012

Focus in chrome


 // In Chrome, caller is null if the user initiated the focus,
  // and non-null if the focus was caused by a call to element.focus().
var causedByUser = (onfocus.caller == null);
node Types
https://developer.mozilla.org/en-US/docs/DOM/Node.nodeType




No comments: