Javascript DOM Form Text Field Select

Description

Javascript DOM Form Text Field Select

View in separate window


<html>
<head>
    <title>Automatically Select Text</title>
</head>/*from  www.  j a va  2  s. c  o m*/
<body>
<form>
Click to select: 
<input type="text" value="some text" id="myEntry" onfocus="this.select()">

</body>
</html>



PreviousNext

Related