document.writeln('<a href="#"onClick=popUpInfo(' + subject[i] + ')>' + subject[i] + '</a>');
I think it's to do with using the escape sequence, because if I try to click a link when I don't put any parameter in the function like this:
document.writeln('<a href="#"onClick=popUpInfo()>' + subject[i] + '</a>');
It works (with the normal error for having no parameter) but I've tried lots of things with the escape sequence and I can't get it to work.
Help would be appreciated, thanks.