Create JavaScript Debug Console using DIV and innerHTML html

Create JavaScript Debug Console using DIV and innerHTML

Interesting thread on Experts Exchange, on how to develop a standard facility to do debugging inside web-pages:
JavaScript: How to print log messages to Firefox JavaScript console in my javascript?