Date: 10/12/07 (Javascript Community) Keywords: html, java I got tired of clicking OK on a dozen alert statements when I was trying to debug some troublesome javascript, so I came up with this simple alternative: function dump(descr,value) { So long as you have an element with an ID of "dump", e.g.
You can view the values of troublesome variables on the page like so: dump("troublesomeVar",troublesomeVar); Source: http://community.livejournal.com/javascript/142968.html
|