Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <textarea id="chat"></textarea>
- <input type="submit" value="Submit" onclick="send_msg();">
- textarea.onkeyup = function(e) {
- alert(e.keyCode);
- e = e || window.event;
- if (e.keyCode === 13) {
- send_msg();
- }
- return true;
- }
- t // t
- と // to
- とう // tou
- とうk // touk
- とうky // touky
- とうきょ // toukyo
- とうきょう // toukyou
Add Comment
Please, Sign In to add comment