HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Automatically closing popup window
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form
View previous topic :: View next topic  
Author Message
Che Guevara



Joined: 14 Jun 2004
Posts: 1

PostPosted: Mon Jun 14, 2004 3:38 am     Automatically closing popup window Reply with quote

Hello

I wish to automatically close the popup window, when i close the main window or when the parent window changes.

Thanks
Che
mjpliv



Joined: 11 May 2004
Posts: 406
Location: Nova Scotia

PostPosted: Mon Jun 14, 2004 4:43 am     Reply with quote

I am not well versed in Java but I found this in another forum. Thay were trying to close the popup when the main page finished opening.

Quote:
I am not sure Antaris cuz I cannot see his code and really understand it. Looks like he copied something wrong. Anyways I guess the way to do it would be to have the original popup open just from the head tag.
<head>
<script>
window.open('mypage.html','myWin');
</script>
</head>

and then have
<body onload="myWin.close()"

That is the only way I could see this plan working out.
-dk


It seems to me that if the onload command in the body tag was replaced with an onclose command - it might work - but I am guessing. Anybody out there actually understand Javascript?

Here is the source of this quote - http://www.webdevforums.com/showthread.php?t=1218
T1



Joined: 27 May 2004
Posts: 18
Location: Belgium

PostPosted: Sat Jul 24, 2004 3:28 pm     Re: Automatically closing popup window Reply with quote

Che Guevara

Check this out: http://www.htmlcodetutorial.com/linking/linking_famsupp_120.html

Look at the section : dependent if the popup should close when its opener window closes
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial