<div id='test'>текст</div> <script type='text/javascript'> alert(document.getElementById('test').innerHTML); </script>