Added onFocus event handler mechanism #3.