How to use the focus() 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 focus() method?
Rating:
The syntax of using the focus() method is as follows:
The focus() method can be used as follows:
<head>
<script language="JavaScript">
function focusme()
{
window.focus
}
</script>
</head>
<body>
<form>
<input type="button" value="Blur" onclick="focusme()">
</form>
</body>
</html>
Rating:
Was this information helpful?
Other articles
- What is the write method?
- How to use the bgColor property?
- What is the switch statement?
- How to use the status property?
- What is the do-while loop?
