Use Native Confirmation Dialog with PhoneGap


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $( '#uncle' ).bind( 'touchend', function( e ) {
  2. navigator.notification.confirm(
  3. 'Are you sure you are done?',
  4. function( button ) {
  5. // alert( 'Success: ' + button );
  6. },
  7. 'Question For You',
  8. 'Yes,No,Bugger Off'
  9. );
  10. } );

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.