Override alert and confirm in Javascript
<p>Is there a way to override <code>alert("")</code> and <code>confirm("")</code> in javascript?</p>

<p>I use jQuery, so if there is a way to do it in this framework, I'd appreciate it.</p>

<p>I'd like to do stuff like:</p>

<pre><code>override alert(msg){
    //Show custom stuff here
}

override confirm(msg){
    //Show custom stuff here.
    return watever;
}
</code></pre>
