HTML DOM blur() Method
Complete Window Object Reference
Definition and Usage
The blur() method removes focus from the current window.
Syntax
Example
The following example assures that the new window does NOT get focus:
<html>
<body>
<script type="text/javascript">
myWindow=window.open('','','width=200,height=100')
myWindow.document.write("This is 'myWindow'")
myWindow.blur()
</script>
</body>
</html>
|
Try-It-Yourself Demos
Give focus to
a new window
Remove focus
from a new window
Complete Window Object Reference
|
|
|