Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Javascript: detect pop-up window close
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedJavascript: detect pop-up window close

 Post Reply Post Reply Page  12>
Author
aj2taylo View Drop Down
Newbie
Newbie


Joined: 14 April 2003
Location: Canada
Status: Offline
Points: 9
Direct Link To This Post Topic: Javascript: detect pop-up window close
    Posted: 17 June 2003 at 11:17am

Hi there,

I have a page that loads a pop-up window.  I want to be able to detect form the parent when the window closes.  Any tips?

Thanks in advance

Back to Top
abhinav View Drop Down
Groupie
Groupie


Joined: 13 May 2003
Location: India
Status: Offline
Points: 63
Direct Link To This Post Posted: 19 June 2003 at 5:34am
huh? not sure what you mean. can you explain it a bit better? what do u want to know exactly?
Back to Top
aj2taylo View Drop Down
Newbie
Newbie


Joined: 14 April 2003
Location: Canada
Status: Offline
Points: 9
Direct Link To This Post Posted: 19 June 2003 at 5:39am

Let's say I have a browser open (call it "parent").  "Parent" opens up a pop-up window called "child".  I want "parent" to be able to detect when "child" has been closed by the user.

Thanks

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Direct Link To This Post Posted: 19 June 2003 at 5:44am
The easiest method for doing this is too have a Javascript function run when the child window closes.
Back to Top
abhinav View Drop Down
Groupie
Groupie


Joined: 13 May 2003
Location: India
Status: Offline
Points: 63
Direct Link To This Post Posted: 19 June 2003 at 7:17am
oh .. dunno .. check hotscripts.com dynamicdrive.com wsabstract.com
Back to Top
Arad View Drop Down
Newbie
Newbie


Joined: 07 June 2003
Location: Israel
Status: Offline
Points: 31
Direct Link To This Post Posted: 20 June 2003 at 4:33am
download pop-up killer
Back to Top
Bluefrog View Drop Down
Senior Member
Senior Member


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Direct Link To This Post Posted: 20 June 2003 at 10:24am
It's called "onunload" or something like that and goes in the body tag.
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Direct Link To This Post Posted: 20 June 2003 at 3:01pm
onUnload is called EVERY time the page unloads which means if the page is refresh or a new page is loaded onUnload will be called. Not a problem if you are just opening a window for content reading, but can be a big problem if the window is used for browsing.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.