Return to Snippet

Revision: 30308
at August 11, 2010 17:11 by shapeshifta


Initial Code
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");

Initial URL

                                

Initial Description

                                

Initial Title
Show alert if console is not available in Browser

Initial Tags

                                

Initial Language
JavaScript