|
A Virtual Javascript Console for DebuggingJeffrey P. Bigham |
|
Related ArticlesRelated Ads |
Sometimes when developing applications with Javascript it's useful to have a place to output commands. You could do that using alerts, but that's pretty annoying. And you could even hook it up with the Javascript Console provided by Firefox, but then you mix your output with errors or other browser messages. This simple little Javascript code, adds a virtual Javascript console that you can write to. It's quite simple (just look at it), but it can be extremely useful. To use it, just include the following code in with your Javascript:
When you want to write something to the console, call it like so:
|
|
|
||