How to remove the focus from the current window in JavaScript

1 Answer

0 votes
var myWindow = window.open("", "", "width=300, height=200");

myWindow.document.write("<p>The new window</p>");

myWindow.blur(); // remove the focus from the current window


/*
run:
 
 
*/

 



answered May 3, 2017 by avibootz

Related questions

1 answer 136 views
1 answer 244 views
1 answer 350 views
1 answer 112 views
1 answer 134 views
...