use onfocus instead of onclick