|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
here is the setup:
i popup a window... then i want to close teh parent window WITHOUT that anoying error msg "do you want to close this windo?" YES IT IS POSSIBLE.... here is a post from a newsgroup of someone who did it..but i still cant get it ----- Found it! The trick is to get a handle to the window, which can be done with open ('','windowName'); As my window didn't have a name initially, I first had to name it window.name='windowName' Once you've got the handle, Netscape seems to consider you "own" the window enough to close it. ---- Am i supposed to put the open('','windowname'); and window.name='windowname'; in the parent??? here is what im doing ...(this is my parent page ..index.html) <SCRIPT language="Javascript"> function start(){ window.name='windowname'; open ('','windowname'); window.close(); var startup = window.open("grow.html","CyclopsBlastShield","width=110,height=30,scrollbars=no,resizable=yes,screenX=1,screenY=1,top=100,left=100"); } </SCRIPT> </HEAD> <body bgcolor="black" onload="start()"> THANKS IN ADVANCE!!!!!!!!! |
|
#2
|
|||
|
|||
|
Ok, check this out, if it's what you wanted, the code is right there on the page at: http://www.sitesuwant.com/multiplewin.html
At the bottom of the page just click "See an Example" and see if that's what you wanted. Devin Hendricks sitesuwant@sitesuwant.com www.sitesuwant.com |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > HELP!! close parent window.. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|