Joined January 2013
·

Wim Mostmans

Gierle, Belgium
·
·
·

It is easier to have a fallback for browsers that don't support console.log by adding following code:

var alertFallback = true;
if (typeof console === "undefined" || typeof console.log === "undefined") {
console = {};
if (alertFallback) {
console.log = function(msg) {
alert(msg);
};
} else {
console.log = function() {};
}
}

This keeps your code DRY and much more managable.

Posted to IE Virtual Machines over 1 year ago

You can also use some online service like BrowserStack which saves you some setup time.

Achievements
123 Karma
2,539 Total ProTip Views