myWindow.blur()

syntax

window.blur ()

Here is some code:

				
function myFunction() {
      var myWindow = window.open("", "", "width=500,height=200");
      myWindow.document.write("this is a blur window");
      myWindow.blur();
      }
				
			

 

Here is an example of the demo in action: