/** * An example of how to put logging into your web pages so that * it appears in the Badboy log when run inside Badboy. */ var enableLog = true; function log(msg) { try { if(enableLog) { window.external.info(msg); } } catch(er) { enableLog=false; } } function myTestFunction() { log("This is a log message for Badboy!"); }