|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Window Part 2
Okay, if you know the name of the window, what is the code to close that window from another window? For example: Mainwindow, 1st windown, 2nd window. Now from the 2nd window, how can I close the Mainwindow? Again, thanks for your help.
|
|
#2
|
|||
|
|||
|
RE: Window Part 2
if the mainwindow has opened the 2nd window...
opener.close() if the 1st window opened the 2nd window then opener.opener.close() and so on... in order to prevent the "Are you sure..." confirmation box in IE, put this code at the top of the mainpage... <script type="text/javascript"> <!-- window.opener=self // --> </script> it fools the window into thinking it is was opened by another window and will close without the confirmation. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Window Part 2 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|