Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript close app phonegap

<!DOCTYPE HTML>
<html>
  <head>
    <title>PhoneGap</title>

        <script type="text/javascript" charset="utf-8" src="cordova-1.5.0.js"></script>      
        <script type="text/javascript" charset="utf-8">

            function onLoad()
            {
                  document.addEventListener("deviceready", onDeviceReady, true);
            }

            function exitFromApp()
             {
                navigator.app.exitApp();
             }

        </script>

    </head>

    <body onload="onLoad();">
       <button name="buttonClick" onclick="exitFromApp()">Click Me!</button>
    </body>
</html>
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript save data to local storage 
Javascript :: arrow function = breakdown steps 
Javascript :: vuetify sass variables vue-cli 
Javascript :: angular 12 tabs 
Javascript :: javascript open window 
Javascript :: react native style variable 
Javascript :: jquey datatables 
Javascript :: render image in vue 
Javascript :: password reset passport-local mongoose 
Javascript :: vuejs take rgba values from coordinate 
Javascript :: javascript execute after 1 second 
Javascript :: jquery repeater 
Javascript :: array remove first element js 
Javascript :: send data from servlet to hjsp 
Javascript :: stack example in javascript 
Javascript :: Select HTML elements by CSS selectors 
Javascript :: javascript Arrow Function with One Argumen 
Javascript :: how to push mutual array elements in an array nested loop javascript 
Javascript :: vue implode array 
Javascript :: react datepicker 
Javascript :: jquery remove multiple words from string 
Javascript :: chartjs templates 
Javascript :: export function node js 
Javascript :: json stringify number 
Javascript :: charcodeat javascript 
Javascript :: js how to get max sub array sum 
Javascript :: how to append response header in node 
Javascript :: angular compnent 
Javascript :: edit embeds discord.js 
Javascript :: 1 day ago javascript 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =