title: How DIV scrolls in chat script?
body: <p>I coded for a chat script and all the issue is with scrolling DIV layer. I downloaded few chat scripts and found the below after careful observation.</p>
  
  <p>When ever a new line of chat is added, scroll bar doesn't scrolls down <strong>after chat line is added.</strong> Its <strong>adding to the bottom of the DIV layer</strong> as the scroll doesn't make any kind of disturbance while making it.</p>
  
  <p>What I did:</p>
  
  <p>Before I used javascript to scroll down for every fixed interval. Doing this I am unable to manually scroll up to view past lines(due to interval refresh scroll bar moves to set position). Later I coded for a javascript that can scrolls down <code>OnClientClick</code> but doing this I can only able to scroll down <code>Chat sender side</code> but it cannot scroll down at <code>Chat receiver side</code> when a new chat line is added.</p>
  
  <p>I downloaded many chat scripts and checked how this particular issue is managed but I couldn't find any solution for it. I fairly guess that its the work of jQuery (not sure) can anybody tell me how to fix this issue?</p>
  
  <p>I am sorry if you failed to understand my issue as I am unable to explain it in more detailed than as above. However I can give you more information on request.</p>
  
  <p>Languages I am using are ASP.NET, AJAX update panels, timer ticks for updating div with new values, javascripts are till now used only to scroll down the element.</p>