rem: m.scrollTop = m.scrollHeight; 
add: msgs_div.scrollTop = msgs_div.scrollHeight; 
context:    function renderMsgs(obj, prepend){	var msgs_div = $('msgs_div');	var msgs = obj.msgs;	var len = msgs.length;	var tmp_html = '';	for(var i = len-1; i >= 0; i--){		var color = getNextColor(last_color); 		last_color = color;	   	tmp_html += "<div class=\"row " + last_color + "\"><span class=msg_time>[" + msgs[i].t + "]</span> " + msgs[i].s + ":<span class=msg>" + msgs[i].msg + "</span></div>\n"; 	}	if(prepend){		msgs_div.innerHTML = tmp_html + msgs_div.innerHTML;	}	else{		msgs_div.innerHTML += tmp_html; 	}        msgs_div.scrollTop = msgs_div.scrollHeight;    	if ( navigator.appName == "Microsoft Internet Explorer" ) {            m.scrollTop = m.scrollHeight; // IE7 requires running this twice!        }   }
meta: 6307	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6307/ae6dcc0fd9e2fe4fedf3f665048fe79fe6a66758/chat.js/clean/yaploud.com/js/chat.js