As a quick hack you can just do this:
textArea.scrollTop = 99999;
Another option is to try it in a timer:
setTimeout(function()
{
var textArea = document.getElementById('outputTextResultsArea');
textArea.scrollTop = textArea.scrollHeight;
}, 10);
More Related Contents:
- Why does Google prepend while(1); to their JSON responses?
- How can I get jQuery to perform a synchronous, rather than asynchronous, Ajax request?
- How to invoke a JSF managed bean on a HTML DOM event using native JavaScript?
- Asynchronously load images with jQuery
- Sequencing ajax requests
- What is the cleanest way to get the progress of JQuery ajax request?
- Chrome counts characters wrong in textarea with maxlength attribute
- How do I send an AJAX request on a different port with jQuery?
- Is onload equal to readyState==4 in XMLHttpRequest?
- Sending binary data in javascript over HTTP
- How to set selected value of jQuery Select2?
- Ignore mouse interaction on overlay image
- WebKit “Refused to set unsafe header ‘content-length'”
- What is the best way to emulate an HTML input “maxlength” attribute on an HTML textarea?
- Intercept fetch() API requests and responses in JavaScript
- Keep input value after refresh page
- Is there a way to make a text area partially editable? (make only portions of the text editable)
- Uploading File using Ajax in Asp.Net Core
- How to set a header for a HTTP GET request, and trigger file download?
- Is there any limitation on JavaScript Max Blob size
- XMLHttpRequest 206 Partial Content
- Annoying javascript timezone adjustment issue
- What is the alternative for the chart extender attribute in PrimeFaces 5.2 and newer
- Permission denied to access property in IFRAME
- Img src path with header params to pass
- jQuery $.ajax(), pass success data into separate function
- XMLHttpRequest: Network Error 0x80070005, Access is denied on Microsoft Edge (but not IE)
- How to submit checkboxes from all pages with jQuery DataTables
- Like button Ajax in Ruby on Rails
- creating highchart with ajax json data