i added alertify to my project to enhance some visuals and overide the time on the standard prompt of the browser however the code doesnt work on firefox it works on chrome please see below :
xFunction = function() {
event.preventDefault();
alertify.confirm("Are you sure? This cant be undone!!?", function(e) {
if (e) {
alertify.success("Asset Discontinued Successfully!!");
$('#conf').click() } else {
alertify.success("Nothing was Discontinued!!");
}
});
}
and for the html
<form action='Allocated.php' method='post' name='disc' id='conf' >
<input type='submit' name='disc' value='Discontinue Asset' formnovalidate='formnovalidate' id='conf' onclick='return xFunction() ;' />