4 ms·
I was actually hoping for an alternative to using alert() in IE7, as that's the only place I still use it for debugging purposes
by c4urself 14y ago
I was actually hoping for an alternative to using alert() in IE7, as that's the only place I still use it for debugging purposes
- tzaman 14y ago<sarcasm> You still debug IE7? </sarcasm>
- hkuo 14y agoIf you use jquery, I wrote this really simple snippet that I use for quick down and dirty debugging. var logit = function(x){$('body').append('<div id=logit></div>');$('#logit').css({'background':'#000','position':'fixed','bottom':0,'right':0,'color':'#fff','padding':5,'font-family':'arial','font-size':'9px','z-index':9999});$('#logit').append(x+'<br>');}; It could very easily be adjusted for non-jquery too. Then just call it like: logit(whateverYouWantToDisplay);