This mission is using page link and auto back button.
I consist one file(html)
This is first page(main)
- <div data-role="page" id="page" data-theme="b" >
- <div data-role="header" >
- </div>
- <div data-role="content">
- </div>
- <div data-role="footer">
- </div>
- </div>
This is second page.
- <div data-role="page" id="page2" data-theme="b" >
- <div data-role="header" data-add-back-btn=”true” >
- </div>
- <div data-role="content">
- </div>
- <div data-role="footer">
- </div>
- </div>
compare pages.
Can you finding what is different?
line 2 is different.
second page added "data-add-back-btn="true"".
This code making automatically add "back" button.
So we use second page.
Maybe don't need for first page.
And line 7 is page link.
<a href="#page name" > linked tag that is name is "page name".
So if you click this button, open this page.
This is first page.
If you click page Two.
You can see second page.
And see back button.
No comments:
Post a Comment