brompt ({ /* prompt title */ title : 'Title' , /* * prompt design type - * success, info, error or warning */ type : 'info' , /* OK button custom done */ okButtonText : 'Done' , /* Cancel button custom text */ cancelButtonText : 'Back' , /* same function as that of blurt() */ escapable : false , /* * success callback function * this callback is passed the value which the user has entered */ onConfirm : function ( val ){ blurt ( 'You entered ' + val ); }, /* * method to be called * when user presses cancel button */ onCancel : function (){ blurt ( 'Error' , 'You cancelled the operation.' , 'error' ); } });