Usage
The blur() method is used to remove focus to specific window.
|
<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.
|