While you can easily replace the vanilla "alert" display mechanism, as mentioned above, keep in mind that the in-built "alert" functionality also pauses (suspends) execution of the underlying JavaScript.
So when using any replacement you need to take the fact that execution of your underlying script will continue while the "alert" is displayed.
For instance, the JQuery plug-in above will give you a CSS styled "alert" message, but execution is continuing while the message is up. So if you had multiple "alert" messages in your underlying script, they overlay each other.
lenamtl
The only alert you cannot modify for security reason are the one created/hardcoded by the browser
for example beforeunload event
Open in new window