javascript - Function to return true in OnClick with SweetAlert -
hi i'm doing function in php, in ask confirmation continue using sweetalert, idea use onclick event, problem have no control, message displayed not expect confirmation in of both cases, form , link. code: <meta http-equiv="content-type" content="text/html; utf-8" /> <script src="scripts/jquery-1.4.4.min.js"></script> <script src="sweetalert/dist/sweetalert-dev.js"></script> <link rel="stylesheet" href="sweetalert/dist/sweetalert.css"> <body> <?php function showmessage($titulo,$contenido,$tipo) { if($tipo=="ok") { // } else if($tipo=="error") { // } else if($tipo=="ask") { echo " swal({ title: '$titulo', text: '$contenido', type: 'warning', showcancelbutton: true, confirmbuttoncolor: '#dd6b55', confirmbuttontext: 'yes, delete it!', cancelbuttontext:...