TAG
JavaScript
Result
Run
License
<button type="button" id="btn-callbadscript">Call to bad script</button>
window.addEventListener("load", () => { document.getElementById("btn-callbadscript").onclick = () => { eval("const my;"); }; }); window.addEventListener("error", function() { console.log("It is bad script!"); });
Console
expand_less
License
License
by DevDic
Close