Debug window for Javascript
I wrote this short little function when I got tired of debugging JavaScript by using the alert() function. It pops up a new window and outputs whatever you send to the function along with the UTC date.
PLAIN TEXT
JavaScript:
function logOutput(message)
{
debugWindow = window.open(”, ‘dbgWindow’, ‘height=300,width=400′);
var newDate = new Date();
[...]