2 Replies Latest reply on Jun 30, 2007 8:27 PM by bitwyse

    Trying to get back to the calling web page in a button

    bitwyse Level 1
      I have a website that calls my flex application. A simple registration form. If the user wants to cancel the form by clicking the cancel button, I want it to go back to the calling page. Just like clicking the back button in the browser.

      this is what I tried and is not working:

      private function goBack( howMany:int ):void
      {
      var url:URLRequest = new URLRequest( "javascript:history.back( howMany )" );
      navigateToURL( url, "_self" );
      }

      Any ideas on how to do this would be greatly appreciated!!!!