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 203 views
1 answer 342 views
1 answer 447 views
1 answer 173 views
1 answer 210 views
...