jws2bay
asked on
Open and Close Br window, but close it so it is gone.
I want to open a information popup and then have it close when focus is lost.
I find that the window closes, or I should say that focus is returned to the parent page, but the
is still open in the background and you can be tabbed to it as a window. I want it to be gone.
Here is my test case:
-------------------------- --------
<button onclick="myFunction()">Ope n</button>
<script>
function myFunction() {
var myWindow = window.open('W4_tech_detai l.php?Part _no=SGCU1C H','','scr ollbars=ye s,resizabl e=yes,widt h=700,heig ht=600');
myWindow.focus();
myWindow.onblur=mywindow.c lose;
}
</script>
-------------------------- ---------- ------
Here is my test URL : https://www.eshowerdoor.com/test-window.html
I find that the window closes, or I should say that focus is returned to the parent page, but the
is still open in the background and you can be tabbed to it as a window. I want it to be gone.
Here is my test case:
--------------------------
<button onclick="myFunction()">Ope
<script>
function myFunction() {
var myWindow = window.open('W4_tech_detai
myWindow.focus();
myWindow.onblur=mywindow.c
}
</script>
--------------------------
Here is my test URL : https://www.eshowerdoor.com/test-window.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER