Override alert() && confirm()

Februar 17th, 2009

I never tried this before: It’s possible to override the javascript built-in functions alert() and confirm(). I think this can be a useful feature in some cases. For instance you can write a function to display all alerts in the Firebug console with this code:

function alert( message ){
    console.info( message);

Leave a Reply