B
bwucke
writeOnceDebugEverywhere() napisal(a):
Keywords: scrollTop, scrollHeight.
Caveat: Non-standard, buggy.
- I believe it is a simple question:
my onclick event for the button looks as follows:
......
// reference to the <div id="messages" :
var mDiv=document.getElementById('messages');
mDiv.innerHTML += 'bla.. bla.. bla';
mDiv.innerHTML += '<br/>';
- at the some point, when <div> area becomes full, I want somehow to
scroll down, because of I cannot see last added message without manualy
scrolling down.
My question is, wheter is possible, and how ?
Keywords: scrollTop, scrollHeight.
Caveat: Non-standard, buggy.