We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

noah on 06/16/07


Tagged

errors browser notification exception debugging ui ux chrome catch try throw JavaScript15 handlers 2007


Versions (?)


Write to browser's error console


Published in: JavaScript 


Display an error message in the browser's error console. JavaScript 1.5 and up.

  1. throw new Error("Error message not found!");

Report this snippet 

You need to login to post a comment.