<!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd "><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><title>Untitled Document</title><Script>window.onload=function (){ varobtn=document.getElementById ('BTN1'); varOTxt1=document.getElementById ('txt1'); varoTxt2=document.getElementById ('txt2'); Obtn.onclick=function() {Otxt1.value+=Otxt2.value+'\ n';//line BreakOtxt2.value="';//Empty the input box }; Otxt2.onkeydown=function(EV) {varoevent=EV||event;//Event Handling Compatibility if(Oevent.keycode== -)//take the keyboard carriage return event{Otxt1.value+=Otxt2.value+'\ n'; Otxt2.value="'; } };};</Script></Head><Body><textareaID= "Txt1"rows= "Ten"cols= "Max"></textarea><BR/><inputID= "Txt2"type= "text" /><inputID= "BTN1"type= "button"value= "message" /></Body></HTML>
Ctrl+enter Submit Message