How to use the select() method?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
How to use the select() method?
Rating:
The syntax of using the select() method is as follows:
The following example will demonstrate the use of the select() method:
<head>
<script language="javascript">
function seltext()
{
document.form1.text1.select()
}
</script>
</head>
<body>
<form name="form1">
<input type="text" name="text1">
<input type="button" value="Select" onclick="seltext()">
</form>
</body>
</html>
Rating:
Was this information helpful?
Other articles
- What is the match() method?
- What is the join method?
- How to use the status property?
- What is a textarea object?
- What is a variable?
