Handling Browser Buttons.

Is there a way in enyo, to handle the browser buttons back, forward and reload?


  • edited June 2013
    Enyo doesn't have any "special" tools to handle those but you have the standard browser APIs.

    You can handle onunload for the document to detect when your page is left though you don't know where the user is going. Could be back, forward, closing the browser, or navigating elsewhere.

    If you want to allow forward/back button within your app, you can use the History API or onhashchange to monitor those events. Enyo nightly does include onhashchange support via Router.js.
Sign In or Register to comment.