A dedicated button that enables traversal backward through the navigation stack history.
Each page can host a back button that remains hidden until you navigate to that page from another, whereupon the back button becomes visible on the page.
The BackButton checks the navigation stack to determine whether the user can navigate backwards. If there is nothing to navigate back to, the button is not displayed. When the user clicks the button or uses keyboard shortcuts (such as Alt+Left or the browserBack keys), the back function is called and the previous page in the navigation stack is loaded. You don't have to write any code.
The BackButton object has these types of members:
The BackButton object has these constructors.
Creates a new BackButton.
The BackButton object has these methods.
Registers an event handler for the specified event.
Raises an event of the specified type and with additional properties.
Releases resources held by this BackButton. Call this method when the BackButton is no longer needed. After calling this method, the BackButton becomes unusable.
Checks the navigation history and updates the disabled attribute value of the control.
Removes an event handler that the addEventListener method registered.
The BackButton object has these properties.
Gets the DOM element that hosts the BackButton.
Minimum supported client
|Windows 8.1 [Windows Store apps only]|
Minimum supported server
|Windows Server 2012 R2 [Windows Store apps only]|
- WinJS.UI Namespace
- Your first app - Part 3: PageControl objects and navigation
- Navigating between pages (HTML)
- Adding app bars
- Adding nav bars
- HTML AppBar control sample
- HTML NavBar control sample
- Navigation and navigation history sample
- Command patterns
- Navigation patterns
- Guidelines for app bars
- Bottom app bar
- Top app bar