Software Engineering in WordPress, PHP, and Backend Development

Author: Tom (Page 406 of 427)

Reroute Chrome’s alert() Dialog to the Console

I spend the majority of my time working in Chrome. Whenever I’m working with a lot of JavaScript, I tend to print information to the console for review.

The thing is, typing alert() is much faster than typing console.log() but alert() is exceptionally more annoying. For those of you that want to save a few keystrokes, copy this simple script into a file and include it before any other JavaScript on your site:

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑