2 Replies Latest reply on Oct 31, 2007 11:10 AM by Newsgroup_User

    Closing a web page

    Level 7
      Easy one here -

      I've created a shockwave app that a client will have open in it's own
      browser window. When a user clicks an exit button within the shockwave
      app, I want the window it's playing in to close so they'll be taken back
      to whatever page they were on initially. Halt doesn't seem to work -
      just stops the shockwave file. What command do I use?

      Thanks
        • 1. Re: Closing a web page
          Level 7
          Word One - Denver wrote:
          > I've created a shockwave app that a client will have open in it's own
          > browser window. When a user clicks an exit button within the
          > shockwave app, I want the window it's playing in to close so they'll
          > be taken back to whatever page they were on initially. Halt doesn't
          > seem to work - just stops the shockwave file. What command do I use?

          As long as the window was opened from JavaScript (thus avoiding a browser
          security alert):

          gotoNetPage("JavaScript:window.close()")

          Andrew


          • 2. Re: Closing a web page
            Level 7
            Thanks, Andrew. I'm not sure what he's using to open the window with,
            but I'll find out. What would you do if JavaScript weren't being used?

            -Matt