Web Analytics Made Easy -
StatCounter Close popup window - CodingForum

Announcement

Collapse
No announcement yet.

Close popup window

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Close popup window

    Hello to all!
    I've a page with a form, when i click on the "Submit" button, i send the data to an asp page and i open a popup window called "Attesa".
    When the asp page have received the form data, i have to close automatically the popup window...how can i do this?
    Thanks,

    Giuseppe

  • #2
    in the BODY tag of the asp page put in onLoad="self.close()"

    Comment


    • #3
      the asp page must remain opened, is the other page, opened as popup window, that i have to close...

      Comment


      • #4
        Originally posted by giuseppe74
        is the other page, opened as popup window, that i have to close...
        gui..
        just a try® putting this in the BODY tag of the "Attessa" page ...
        onLoad="self.close()"
        The New JustaBuster Version 2.0 OR JustaBusta Lite V2.0
        ...just a special® thanx kinda hugs to jkd n' nex ...:O)))

        CommemorateWTC.com --Please lend your support

        Comment


        • #5
          Sorry, i misunderstood you.

          Try something like

          ASP: onLoad="Attesa.close()";

          Comment


          • #6
            for justame: if i put the self.close on the popup page it will close the page, but i want to close the popup from another page

            tamienne i've tried but it doesn't work

            Comment


            • #7
              What error are you getting?

              Can you post a url or code so we can look?

              Comment


              • #8
                none errors, just the popup don't close!

                this is an example i made on two html pages:

                page one (prima.htm):

                <a href="seconda.htm" onClick="window.open('attesa.htm','attesa','width=300,height=300');">Clicca</a>

                page two (seconda.htm)

                ...i don't know what write to close the attesa.htm

                page attesa.htm

                ..just remain opened till seconda.htm close it...

                can you help me?

                Comment


                • #9
                  on seconda.htm call the window.open again with the same name. This gives you the window handle so you can close the window.

                  <script>
                  function closeIt(){
                  newWin=window.open('','attesa','width=300,height=300');
                  newWin.close();

                  }
                  </script>
                  </HEAD>
                  <BODY onLoad="closeIt()">

                  Comment


                  • #10
                    It works good!!!!!!
                    Really really thanks!

                    Comment

                    Working...
                    X