Most people use alert() to debug their JavaScript, but the Microsoft Ajax Library has a better alterative Sys.Debug . Sys.Debug has some methods for logging messages to the browser console. Like this: To log a message: Sys.Debug.trace(“Log to the console...