#19 JAVASCRIPT ALERTS
JALERT is a useful library which can be used to replace the three boring system kinds of popup boxes: Alert box, Confirm box, and Prompt box.
The usual system JavaScript alert would be called like below:
alert("I am an alert box!");
Jalert can be used in the same way but with more functionality:
1 2 3 4 5 |
$("#confirm_button").click( function() { jConfirm('Can you confirm this?', 'Confirmation Dialog', function(r) { jAlert('Confirmed: ' + r, 'Confirmation Results'); }); }); |

- useful links