ChatServer/pages/js/message.js

4 lines
146 B
JavaScript

$(document).on("keypress", function(e) {
if (e.which == '\r'.charCodeAt(0))
document.write(document.getElementById("msginput").value);
});