I have below error while executing the js script for page for the page:
Function(e) {
var ErrorDataNotFound=’ ‘;
var elems=document.getElementsByTagName(‘UL’);
for (i in elems){
if((’ ‘+elems[i].className+’ ‘).indexOf(‘error’)>-1){
ErrorDataNotFound+=elems[i].innerText+’\n’;}
}
return ErrorDataNotFound;
}
Any idea about the error?