Last Updated: October 11, 2021
·
716
· even_lesss

IE 7 js doesnt work

Have you been wondering, why js is not working on ie 7 when everywhere else it does? Well, remove from your js code:
console.log(); </code>

2 Responses
Add your response

Or add if (!window.console) console = {log: function() {}} at the top.

over 1 year ago ·

@finnpauls I use a small script int he top that's if(!window.console){var i=function(){},console={log:i,dir:i}); cause I use both console.log and console.dir sometimes.

over 1 year ago ·