Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
window.blur() Method in Window Object of Javascript Syntax with Examples
2792 Views
Usage 
The blur() method is used to remove focus to specific window.
Syntax 
myWindow.blur();
Example
<button onclick="javascript:showwindow();">Blur window</button>
var myWindow = window.open("http://www.knowledgewalls.com","","width=800,height=300");

function showwindow(){
  myWindow.blur();
}
Output 
Once we run the program, website will be displayed.Once we press Blur button,it remove the focus to current window.
Best Lessons of "Javascript Syntax with Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details