Find your next home with Luxist's "Estate of the Day"

Custom Alerts

Steve at Slayeroffice has posted another nifty example: Custom Alerts displays alerts using a custom look rather than the default window.alert() method's appearance.

The tricky bit is that he accomplishes this by overriding the default window.alert method, so any alerts on the page will appear with the custom look. The other tricky bit is that the alert is actually within a giant DIV that covers the entire window to simulate a modal window. Definitely not something you need every day, but I do like to see JavaScript's limits pushed.

Reader Comments

(Page 1)

RESOURCES

RSS NEWSFEEDS

Powered by Blogsmith

Other Weblogs Inc. Network blogs you might be interested in: