Creating a dynamic debug window

Creating a dynamic debug window

With this Javascript code you can dynamically create a debug window in an HTML page and add text to it.

How to use the code:

This function adds text to the debug window:

This function creates the debug window:

A working example: link