4 Replies Latest reply on Sep 19, 2007 5:27 AM by Newsgroup_User

    Close a Window

    Level 7


      Hi All,

      I would like to open another window from a button however I want to close
      the first window when this button is pressed.

      Can it be done please ?

      Regards
      Helen

      Helen Prior


        • 1. Re: Close a Window
          Level 7
          "Helen" <Helen@Htsol.co.uk> wrote in message
          news:fcim3i$mut$1@forums.macromedia.com...
          >
          >
          > Hi All,
          >
          > I would like to open another window from a button however I want to close
          > the first window when this button is pressed.
          >
          > Can it be done please ?


          Hi Helen, think about what would happen when a user had several Tabs open in
          the window you're going to close... would that make them happy?

          • 2. Re: Close a Window
            Level 7
            I'm guessing you have links on your main page that open within pop-up
            windows (?). If that is the case, a kinder and safer approach would be to
            place a "close window" button on the pop-up page with the following code.

            <input type="button" value="Close Window"
            onClick="javascript:self.close();">

            --Nancy O.
            Alt-Web Design & Publishing
            www.alt-web.com




            "Helen" <Helen@Htsol.co.uk> wrote in message
            news:fcim3i$mut$1@forums.macromedia.com...
            >
            >
            > Hi All,
            >
            > I would like to open another window from a button however I want to close
            > the first window when this button is pressed.
            >
            > Can it be done please ?
            >
            > Regards
            > Helen
            >
            > Helen Prior
            >
            >


            • 3. Re: Close a Window
              Level 7
              On Sun, 16 Sep 2007 08:31:01 +0100, "Helen" <Helen@Htsol.co.uk> wrote:

              >
              >
              >Hi All,
              >
              >I would like to open another window from a button however I want to close
              >the first window when this button is pressed.
              >
              >Can it be done please ?
              >
              >Regards
              >Helen
              >
              >Helen Prior
              >
              Google for window, timeout, close.
              • 4. Re: Close a Window
                Level 7
                Thankyou very much Nancy

                Regards
                Helen

                "Nancy O" <nancyoshea1@NOSPAMverizon.net> wrote in message
                news:fck9pk$gle$1@forums.macromedia.com...
                > I'm guessing you have links on your main page that open within pop-up
                > windows (?). If that is the case, a kinder and safer approach would be
                > to
                > place a "close window" button on the pop-up page with the following code.
                >
                > <input type="button" value="Close Window"
                > onClick="javascript:self.close();">
                >
                > --Nancy O.
                > Alt-Web Design & Publishing
                > www.alt-web.com
                >
                >
                >
                >
                > "Helen" <Helen@Htsol.co.uk> wrote in message
                > news:fcim3i$mut$1@forums.macromedia.com...
                >>
                >>
                >> Hi All,
                >>
                >> I would like to open another window from a button however I want to close
                >> the first window when this button is pressed.
                >>
                >> Can it be done please ?
                >>
                >> Regards
                >> Helen
                >>
                >> Helen Prior
                >>
                >>
                >
                >