document.getElementById('myButton').onclick = function()
{
alert("button click");
alert("bclick2");
console.log("console log");
alert("bclick3");
};
When I run this in eclipse on a tomcat server, the first two dialog boxes will display, but not the third, which makes me think that it's the console.log command that isn't working.
What is likely to be the problem?