<div id='test'></div> <script type='text/javascript'> var o=document.createElement('div') o.innerHTML = 'Привет!' document.getElementById('test').appendChild(o) </script>