Witam, jak pobrać tekst który będzie się znajdował w
<div id="chat">
TUTAJ
</div>
<html> <body> <div id="chat"> testowa wartosc diva CHAT :) </div> <script> alert(document.getElementById('chat').value); document.write('wlasnosci obiektu HTMLDivElement:<br/> '); for(var i in document.getElementById('chat')) { document.write(i); document.write('<br/>'); } alert(document.getElementById('chat').innerHTML); </script> </body> </html>