Use the following piece of code:
if (typeof console == “undefined” || typeof console.log == “undefined”) var console = { log: function() {} };
Use the following piece of code:
if (typeof console == “undefined” || typeof console.log == “undefined”) var console = { log: function() {} };
Example of how IE support conditionals that narrow the code to only a specific browser and version:
<!–[if gte IE 5]> <style type=”text/css”>
Your code here
<![endif]–>