Function onfocus

    Fires when the object receives focus.