locked
Code back button RRS feed

  • Question

  • Hello, 

    I used blend to add a app menu bar and back button.  Can someone walk me through and show me the code to allow it to go to the previous page.  Here is my code:

    <body>
        <div id="contenthost" data-win-control="Application.PageControlNavigator" data-win-options="{home: '/pages/groupedItems/groupedItems.html'}"></div>
        <!-- <div id="appbar" data-win-control="WinJS.UI.AppBar">
            <button data-win-control="WinJS.UI.AppBarCommand" data-win-options="{id:'cmd', label:'Command', icon:'placeholder'}" type="button"></button>
        </div> -->
        <div data-win-control="WinJS.UI.AppBar">
            <button data-win-control="WinJS.UI.AppBarCommand" data-win-options="{icon:'back', id:'', label:'Go Back', onclick:null, section:'global', type:'button'}"></button>
        </div>
    </body>
    </html>

    Monday, January 7, 2013 8:53 PM

Answers