You can override the alert function with some code of your choice
The only way to provide a cross-browser compatible result would be to to use something like
jquery alerts[
^] to draw your own window, then override the window.alert function to call jquery.alert instead