I feel silly asking this, I must be missing something obvious.
My javascript looks as follows...
function onNewItemClick(event)
{
alert('ello!');
try
{
var xx = 111/0;
}
catch(exc)
{
alert('fff');
}
}
alert('ello!') works like it should, but the alert('fff') in the Catch block never gets called. What am I doing wrong here?