Auto Selecting Input Field Contents on Mouse Entering Field mike 8 years ago You can do this simply with an onclick event like below. <input onclick="select()" type="text"/>