]> git.scottworley.com Git - reliable-chat/blob - webclient/rc.js
13190c51c6785248d7f0d92f1aef466b4755868f
[reliable-chat] / webclient / rc.js
1 function rckeydown(event) {
2 if (event.keyCode == 13) {
3 var d = document.createElement("div");
4 d.appendChild(document.createTextNode(document.input.say.value));
5 var h = document.getElementById("history");
6 h.appendChild(d);
7 window.scrollTo(0, document.body.scrollHeight);
8 document.input.say.value = "";
9 return false;
10 }
11 }