showing results for - "javascript close app phonegap"
Camilla
22 Jul 2018
1<!DOCTYPE HTML>
2<html>
3  <head>
4    <title>PhoneGap</title>
5
6        <script type="text/javascript" charset="utf-8" src="cordova-1.5.0.js"></script>      
7        <script type="text/javascript" charset="utf-8">
8
9            function onLoad()
10            {
11                  document.addEventListener("deviceready", onDeviceReady, true);
12            }
13
14            function exitFromApp()
15             {
16                navigator.app.exitApp();
17             }
18
19        </script>
20
21    </head>
22
23    <body onload="onLoad();">
24       <button name="buttonClick" onclick="exitFromApp()">Click Me!</button>
25    </body>
26</html>