Results 1 to 4 of 4

Thread: |JAVASCRIPT| on close event of popup window

  1. #1

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    |JAVASCRIPT| on close event of popup window

    I have a page that displays a pop up when a button is clicked. once theat popup window is closed how do i automatically refresh the main page

  2. #2

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727
    function UnloadRefresh(){
    opener.location.reload(true)
    }


    <body bgcolor="#FFFFFF" onUnload="UnloadRefresh();">


    This works fine, the only trouble is that the functions of my pop-up window requires that it submits several times before it finishes and each time it does so it refreshes main page.

    is there a way to get around this, perhaps disabling the close button in the top and creating my own close hyperlinks?

  3. #3

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727
    can someone please tell me how to submit a form in a popup window back to the opener window?

  4. #4

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727
    i used window.opener.name="main";

    and set the traget of form as main, and added a close.window() as an onclick.

    Thanks for all your help everyone

Posting Permissions

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



Click Here to Expand Forum to Full Width