Do all browsers support this? I would like to output an error using console.log() but was wondering if this supported by all browsers?
console.log()
console.
Make a wrapper function:
function log(text) { if (window.console) { window.console.log(text); } }