ChatServer/pages/js/message.js

5 lines
146 B
JavaScript
Raw Normal View History

2016-07-20 13:02:49 +00:00
$(document).on("keypress", function(e) {
if (e.which == '\r'.charCodeAt(0))
document.write(document.getElementById("msginput").value);
});