It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free. --Steve McConnell
Welcome to my blog and project site for Microsoft.NET development.

I've been a full time .NET developer for ten years, but I didn't start my professional life as a programmer ... more
Share/Print this page:

Please enter your reply for the comment shown below:

Post Your Comment
  You may post without logging in or login here.
Display Name: Required.
Email: Required. Will not be shown. Used for identicon.
Comment:
Allowed tags: <quote></quote>, <code></code>, <b></b>, <i></i>, <u></u>, <red></red>
 
   Please type text as shown in the image at left.
Replied 2008 Jul 24 05:37 AM by Seryoga. reply
<html>
<head>
<title>CharCodes do Javascript</title>
</head>
<body>
<table id="tabela1">
<thead>
<tr>
<td colspan="2">Tabela de CharCodes</td>
</tr>
</thead>
<TBODY></TBODY>
</table>
<body>
<html>
<script type="Text/Javascript">
var tabela = document.getElementById("tabela1");
var tbody = tabela.getElementsByTagName("TBODY")[0];

for (var i = 0; i <= 1000; i++) {
var row = document.createElement("TR");
var td1 = document.createElement("TD");
td1.appendChild(document.createTextNode(i + " "));

var td2 = document.createElement("TD");
td2.appendChild(document.createTextNode(String.fromCharCode(i) + " "));

row.appendChild(td1);
row.appendChild(td2);
tbody.appendChild(row);
}
</script>
</body>
</html>