using sweetalert with <a type=button code example Example: change icon in sweet alert swal({ icon: "error",});