<script type ="text/javascript" language ="javascript" >
function showDiv1()
{
document.getElementById('Div1').innerHTML=document.getElementById('TextArea1').value;
return false;
}
</script>
<input type="submit" id="btn" value="ok" onclick="return showDiv1();" />
use like this i think it will solve ur problem. i have checked it. it is working.