Quantcast
Channel: Metashock » javascript
Viewing all articles
Browse latest Browse all 2

Override alert() && confirm()

$
0
0
I never tried it 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: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:

Viewing all articles
Browse latest Browse all 2

Trending Articles