HTML DOM blur() Method
Complete Button Object Reference
Definition and Usage
The blur() method is used to remove focus from a
button.
Syntax
Example
The following example removes focus from a button:
<html>
<head>
<script type="text/javascript">
function removeFocus()
{
document.getElementById('button1').blur()
}
</script>
</head>
<body>
<form>
<input type="button" id="button1" value="Button1" />
<br />
<input type="button" onclick="removeFocus()"
value="Remove focus from Button 1" />
</form>
</body>
</html>
|
Try-It-Yourself Demos
Set
and remove focus from a button
Complete Button Object Reference
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|