Recently I discovered that Firefox lets you override alert and confirm window object methods. I tried this with prototype and surprisingly it just worked! (Note that it is not tested in IE or Opera and others yet, but it also works in Safari).

<div id="test" style="background:red;color:white;display:none;"></div>
<script type="text/javascript">
window.confirm = function (s) { alert(s); };
window.alert = function (s) { $('test').update(s).show(); }
confirm('Ok?');
</script>


No Comments on “I love Firefox (and Safari)”

You can track this conversation through its atom feed.

No one has commented on this entry yet.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>