<textarea id='t'>asd</textarea> <input type='button' onclick='a()' value=''> <script> function a() { document.getElementById('t').innerHTML = 'ads' } </script>