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