[JS] Scrollen innerhalb eines DIV
Posted by skoch on 14. Juli 2009zu einer bestimmte Stelle scrollen:
var obj = document.getElementById("myDIV");
obj.scrollTop = 0;
zum Ende scrollen:
var obj = document.getElementById("myDIV");
obj.scrollTop = obj.scrollHeight;
Leave a Reply
You must be logged in to post a comment.