I want to create a js code snippet which will run onclick of a button on page. After clicking that button it will find whether the console has some errors? (i.e. if its showing some error in status bar in IE) If it has error then it will show an alert box saying that some js code failed on this page. Otherwise will show msg "Passed"
Is it possible to get list of js errors from within the page?