blob: 057cea7f093b5ad5bcfb6d82bfe234ca49999b7f [file] [log] [blame]
Licensed to the Apache Software Foundation (ASF) under one$
or more contributor license agreements. See the NOTICE file$
distributed with this work for additional information$
regarding copyright ownership. The ASF licenses this file$
to you under the Apache License, Version 2.0 (the$
"License"); you may not use this file except in compliance$
with the License. You may obtain a copy of the License at$
Unless required by applicable law or agreed to in writing,$
software distributed under the License is distributed on an$
KIND, either express or implied. See the License for the$
specific language governing permissions and limitations$
under the License.$
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="" />
<script src=""></script>
<script src=""></script>
<script type="text/javascript" src="../cordova.js"></script>
document.addEventListener("deviceready", onDeviceReady, false);
// Without backbutton handler, each tab loaded will be popped off history until history is empty, then it will exit app.
function handleBackButton() {
alert("Back Button Pressed! - exiting app");;
function onDeviceReady() {
document.addEventListener("backbutton", handleBackButton, false);
<div data-role="page" id="tabTab">
<div data-role="header">
<div data-role="content" id="tabContent">
To test, press several tabs.<br>
The "backbutton" can be pressed any time to exit app.
<div data-role="footer" data-position="fixed">
<div data-role="navbar">
<li><a href="tab1.html" data-transition="none">Tab 1</a>
<li><a href="tab2.html" data-transition="none">Tab 2</a>
<li><a href="tab3.html" data-transition="none">Tab 3</a>