try{
adslfjasdf.sdlafj("sadfdsaF");
$("#toggle-docs").click(function(){
$(".toggle-docs").toggle("medium");
});
}
catch(err){
errors=errors+1;
}
if(errors!=0){
alert("There were errors loading the floatbar. It may not work correctly.");
var x=document.getElementById("test");
alert(x.innerHTML);
}
The error catching works perfectly.
It's just that within my catch statement, the document object (x) is not working. It is not alerting the innerHTML object of the specified HTML element.
Any explanation as to why it isn't working?