SunQuest
           HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 13th, 2000, 08:52 PM
rynop2000 rynop2000 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: east lansing,MI
Posts: 9 rynop2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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!!!!!!!!!

Reply With Quote
  #2  
Old August 14th, 2000, 11:03 PM
kenowhere kenowhere is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 34 kenowhere User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > HELP!! close parent window..


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway