Why would this happen? Here is the cause.
How to resolve it? Here is the solution.
<button class="win-backbutton" type="button" disabled></button>
- The default page adds “win-backbutton” button to the header of each page.
- The HTML5 button tag by default set to Submit Button
- Since we are running in a browser, hitting the enter key “clicks” the first submit button
- The navigator class handles the click event of “win-backbutton” and calls nav.back()
How to resolve it? Here is the solution.
<button class="win-backbutton" type="button" disabled></button>
Change the type of the back button In the header of the secondary page, set the button type to “button” . That's it problem solved
No comments:
Post a Comment