As per http://www.w3schools.com/jsref/dom_obj_event.asp

onfocus/onblur 	The event occurs when an element gets focus (for <label>, <input>, <select>, textarea>, and <button>)

Notice how github itself uses onblur/onfocus to prefill input fields with 'hint text' ...