/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if(typeof window.console === 'undefined') { window.console = { log : function(str) { alert(str); } } } // mehr JS Code... console.log("I am an alert? Then console is not available"); alert("I am just a simple alert");