I need to determine when the user comes to the end of readonly textarea in the html page.
A very long log for the application will be displayed in the text box. The log files are so large that it is not possible to download all the text in one go (some log files are almost 200 MB). So I will load the first, say, 1000 lines, and then I need to detect when the user is next to the last line of the loaded text , to give him the next n lines through an ajax call.
What is the best way to detect this event?
javascript events textarea
alexmeia
source share