//Yes, you can use onclick events for textboxes in javascript //Here's an example: <input type="text" onclick ="alert('Some alert');" >