? webform-textfield-onfocus-onblur.patch
Index: components/textfield.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/components/textfield.inc,v
retrieving revision 1.12.2.10
diff -u -p -r1.12.2.10 textfield.inc
--- components/textfield.inc	4 Mar 2009 05:05:12 -0000	1.12.2.10
+++ components/textfield.inc	24 Jul 2009 22:01:27 -0000
@@ -94,6 +94,22 @@ function _webform_edit_textfield($currfi
     '#weight' => 3,
     '#default_value' => $currfield['extra']['disabled'],
   );
+  $edit_fields['extra']['attributes']['onfocus'] = array(
+    '#type' => 'textfield',
+    '#title' => 'Onfocus',
+    '#description' => t('Javascript code placed in the onfocus input attribute.'),
+    '#default_value' => $currfield['extra']['attributes']['onfocus'],
+    '#size' => 20,
+    '#weight' => 4,
+  );
+  $edit_fields['extra']['attributes']['onblur'] = array(
+    '#type' => 'textfield',
+    '#title' => 'Onblur',
+    '#description' => t('Javascript code placed in the onblur input attribute.'),
+    '#default_value' => $currfield['extra']['attributes']['onblur'],
+    '#size' => 20,
+    '#weight' => 4.1,
+  );
   return $edit_fields;
 }
 
