here is some HTML Code as example:
A B <
Try this:
var html = ''; var c; for (var i = 65; 90 >= i; i++) {// A-65, Z-90 c = String.fromCharCode(i); html += '' + c + ''; } document.getElementById('box').innerHTML = html; var setLetter = function(x) { document.getElementById('name').innerHTML += x; };