BUG: ??????? window.closed ?????? ??? ??? ?????

?????? ????????? ?????? ?????????
???? ???????: 241109 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

???????

??? ??????? ??????? window.closed ??? ?????? ????? ??? ????? ??? ?????? ?????? ?? ????? ???????? ?? ????? ?? ???? ??? ??? ??? ???? ???? ???????? ??????? window.open ?????.

???? ??????? opener ??? ???? ???? ?????? (???????? ??????? ??????? window.open). ??? ?????? ?????? ???? ??????? opener.closed ? ????? ???? ????? ??? ????? ????? true ????; ??? ??? ??? ?????? ???? ?? ???????.

????? ????? ????? ???? ?????? ?????? ???????? ??????? ???? ?????? ?????? ? ??? ????? ??? ????? ??? ?????.

????

?? ???? ?????? ?? ?????? ??? ????? ????? ????? ?? ???? ???? ???? ????? ??? ????????? ??????? ?????? ?????. ?? ?????? ?????? ??? ??????? ????? ?? ????? opener.closed.

?? ???? ????? negate ??????? ???? ?????? ??????. ??? ???? ?????? ?????????? ??????? ???? ??? ?? ?????? ?????? ?????? ?? ?? ?????? ?? ??? ????? ??? ????? ??? ??????? ?? ????? ???? ?? ?????? Internet Explorer

???? ??????? HTML ???????? ????? ????? ????? ?? ???????.
  1. ???? ????? ?????? Parent.htm:
    <html>
    <head>
    <script>
    var childWin;
    var childOpen = false;
    </script>
    </head>
    <body BGCOLOR="white">
    <input type="button" value="Open Child" id="button1" name="button1" onclick="OpenChild()" >
    <p>
    <input type="button" value="Is Child Open(Bug)?" id="button2" name="button2" onclick="alert(childWin.closed)">
    <p>
    <input type="button" value="Is Child Open(Fix)?" id="button3" name="button3" onclick="alert(childOpen)">
    <script>
    function OpenChild()
    {
    	childWin = window.open ("Child.htm")
    	childOpen = true;
    }
    function UpdateChild()
    {
    	//Only if child window is still open, set the parentOpen property
    	if (childOpen == true)
    	{
    		childWin.parentOpen = false
    	}
    }
    window.onunload = UpdateChild;
    </script>
    </body>
    </html>
    					
  2. ???? ????? ?????? Child.htm:
    <html>
    <head>
    <script>
    var parentOpen = true
    </script>
    </head>
    <body BGCOLOR="white">
    <input type="button" value="Is Parent Open(Bug)?" id="button1" name="button1" onclick="alert(window.opener.closed)">
    <input type="button" value="Is Parent Open?" id="button2" name="button2" onclick="alert(parentOpen)">
    
    <script>
    window.onunload = UpdateParent;
    function UpdateParent()
    {
    	//Only if the parent is open, update the status of the child window
    	if (parentOpen)
    	{
    		window.opener.childOpen = false;
    	}
    }
    </script>
    </body>
    </html>
    					
  3. ????? ??? Parent.htm ?? ???? ??? ???? ??? ??????? ???? ?????? ??????.
  4. ???? ??? ????? ?? ??? ?????? ??? ? ??? ????? ?????? ?????? ????? ????? ????? ??????? ???????. ???? ????? ???? ??? ??? ????? ?? ??? ????? ??? ? ??? ????? ?????? ????? ????????.

?????

???? Microsoft ?? ??? ??? ?? ?????? Microsoft ??????? ?? ??? "????? ???".

?????

?????? ??? ???? ?? ????????? ??? ????? ?????? ???????? ??? ??? ??????? Microsoft Internet Explorer? ?? ?????? ????? Microsoft ??????? ??? ?????:
http://msdn.microsoft.com/ie/

http://support.microsoft.com/iep
(c) 1999 ???? Microsoft ? ???? ???? ?????. ????????? ??? Kusuma Vellanki ? Microsoft Corporation.

???????

???? ???????: 241109 - ????? ??? ??????: 13/???? ??????/1427 - ??????: 3.0
????? ???
  • Microsoft Internet Explorer 4.0 128-Bit Edition
  • Microsoft Internet Explorer 4.01 Service Pack 2
  • Microsoft Internet Explorer 5.0
  • Microsoft Internet Explorer (Programming) 6.0
????? ??????: 
kbmt kbbug kbdhtml kbdocfix kbfaq kbpending KB241109 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????241109
????? ??????? ?? ????? ???? ?? ????? ???????
?? ????? ????? ?????? ???? ???? ???? ??? ??????? ??? ?? ? ?? ??? ??????? Microsoft ??? ????? ??? ??????? ????? ?????? ?????

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com