closing pop-up window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roy G. Vervoort

    closing pop-up window



    I have created a mail form in a pop-up window. After the mail has been send
    succesfull i would like the window to close (without having to click on a
    link or button (wich activaties the 'window.close' command)

    Is this possible and how. I can not seem to find anything like this.

    roy

    The Nethelands


  • Jeffrey Silverman

    #2
    Re: closing pop-up window

    On Wed, 25 Feb 2004 16:05:59 +0100, Roy G. Vervoort wrote:
    [color=blue]
    >
    >
    > I have created a mail form in a pop-up window. After the mail has been send
    > succesfull i would like the window to close (without having to click on a
    > link or button (wich activaties the 'window.close' command)
    >
    > Is this possible and how. I can not seem to find anything like this.
    >
    > roy
    >
    > The Nethelands[/color]

    Javascript question. NOT PHP. Although someone here can certainly answer
    it, you ought to ask it in a JavaScript (or HTML, even) newsgroup.

    later...

    --
    Jeffrey D. Silverman | jeffrey AT jhu DOT edu
    Website | http://www.wse.jhu.edu/newtnotes/

    Comment

    • Kevin Thorpe

      #3
      Re: closing pop-up window

      Roy G. Vervoort wrote:
      [color=blue]
      > I have created a mail form in a pop-up window. After the mail has been send
      > succesfull i would like the window to close (without having to click on a
      > link or button (wich activaties the 'window.close' command)
      >
      > Is this possible and how. I can not seem to find anything like this.[/color]

      Javascript:

      <?php if ($successful) {
      echo "<script language=javasc ript>\n".
      " alert('Mail sent successfully'); \n".
      " window.close(); \n".
      "<script>\n ";
      exit();
      }
      ?>

      Comment

      • michel

        #4
        Re: closing pop-up window

        [color=blue]
        > Javascript question. NOT PHP. Although someone here can certainly answer
        > it, you ought to ask it in a JavaScript (or HTML, even) newsgroup.
        >[/color]
        from his question I understand he knows the javascript portion, but needs
        help echoing it to the visitor's screen.
        php question


        Michel


        Comment

        • Jeffrey Silverman

          #5
          Re: closing pop-up window

          On Wed, 25 Feb 2004 17:13:24 +0100, michel wrote:
          [color=blue]
          >[color=green]
          >> Javascript question. NOT PHP. Although someone here can certainly answer
          >> it, you ought to ask it in a JavaScript (or HTML, even) newsgroup.
          >>[/color]
          > from his question I understand he knows the javascript portion, but needs
          > help echoing it to the visitor's screen.
          > php question
          >
          >
          > Michel[/color]

          Ah yes, I see it now. K Thorpe's answer is a good one.

          --
          Jeffrey D. Silverman | jeffrey AT jhu DOT edu
          Website | http://www.wse.jhu.edu/newtnotes/

          Comment

          Working...