SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Is it possible?

Hybrid View

  1. #1
    SitePoint Zealot ginieg's Avatar
    Join Date
    Feb 2002
    Location
    Houston, TX
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face Is it possible?

    Hello!

    Is it possible to reload the main window when you close a child window?
    I looked in irt.org but couldn't find the answer to my question...
    Can you help?

    Thanks!
    Ginie G.

  2. #2
    ********* Wizard silver trophy Cam's Avatar
    Join Date
    Aug 2002
    Location
    Burpengary, Australia
    Posts
    4,495
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    When you close the child window, couldn't you just use window.location.href and give it the page's URL so it will just reload?

    I'm new to JS but I can't see why that wouldn't work.

  3. #3
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    in 'child' window

    <body onunload="top.opener.location.reload();">
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev





Bookmarks

Posting Permissions

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