Return to Snippet

Revision: 8583
at September 29, 2008 16:11 by kcmr


Initial Code
function debug(what){
	if(window.console && window.console.firebug){
		console.log(what);
	}	
	else{
		alert(what);
	}
}



function prueba(){
	var algo = document.getElementById('test');
	debug(algo);
}

Initial URL


Initial Description


Initial Title
Avoid javascript errors in IE using console.log

Initial Tags
javascript, debug

Initial Language
JavaScript