Javascript examples for DOM:Element innerHTML
Show console errors or information on the page
<html> <head></head> <body> <input type="button" value="INCREMENT" onClick="INCREMENT()"> <input type="button" value="DECREMENT" onClick="DECREMENT()"> <div id="E"></div> <script> window.onerror = function(e){//from ww w. j a v a 2 s. com document.getElementById('E').innerHTML = e.toString(); } </script> </body> </html>