Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts

    refresh parent window on close

    Hello,
    I'm wondering how i can refresh the parent window when closing a popup.

    I know that i can do it by click a link to execute a js function. but I'm looking for a way to refresh the parent even if the user just clicks the "X" in the upper right corner to close the window.

    any ideas would be great!

    thanks in advance for your time!
    -Ken

  • #2
    New Coder
    Join Date
    Dec 2006
    Posts
    80
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Is this to make the same popup reappear? tut tut tut!

    You could probably use window.onunload(window.opener.parent.location.reload()) from the popup to refresh the parent. Or something along those lines.

    HTH

    Joe
    http://www.Kanotix.com --My OS of choice, the best hardware detection on the planet!-
    http://distrowatch.com -Linux is the future-
    http://www.packetstormsecurity.org -Security Gurus-

  • #3
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    no, just to make the parent window refresh displaying the data that was inserted using the popup.

    thanks, i'll try that.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •