<html>
<head>
<script type="text/javascript">
function selText()
{
document.getElementById("myText").select()
}
</script>
</head>
<body>
<form>
<input size="25" type="text" id="myText"
value="A cat played with a ball">
<input type="button" value="Select text" onclick="selText()">
</form>
</body>
</html>
|