Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <script> var myWindow; function openWin() { myWindow = window.open("", "", "width=400, height=200"); myWindow.blur(); } function blurWin() { myWindow.blur(); } function focusWin() { myWindow.focus(); } </script> </head> <body> <input type="button" value="Open new window" onclick="openWin()"> <input type="button" value="Blur new window" onclick="blurWin()"> <input type="button" value="Focus new window" onclick="focusWin()"> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_win_blur by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:37:23 GMT --> </html>
Result:
Try it Yourself - © w3schools.com