Microsoft
Software
Hardware
Network
Question : Always view the last row of a textarea box
Hi,
In an HTA application, as I go through various tasks, I append status information to the bottom of a textarea box. So the textarea box is used for displaying text information only (readOnly="yes" and tabIndex="-1").
This is the textarea element:
<textarea name="textareaStatus" rows="10" cols="80" readOnly="yes" tabIndex="-1"></textarea>
Right after the entries surpass the rows I set (10th rows), all new status text are hidden from user to view, as I can only see the first 10 row of information. I'll need to constantly scroll all the way down to view last row's information.
Is there a way to always keep the last row in a textarea box in view? In my HTA app I'm using VBScript, so I would prefer solution/suggestions in VBScript.
Thanks!
Answer : Always view the last row of a textarea box
Hi, when you update the text area, try using:
txt_status.doScroll("scrol
lbarPageDo
wn")
after the text addition, to make the text box scroll to the bottom.
Regards,
Rob.
Random Solutions
Hyper V with Dell Equallogic SAN out of space on VM because of snapshots
How to change the name in the gtalk
SQL 2008: how to copy schema or data from one table to another which ALREADY exists?
Internet Security settings prevents me from opening a file
outlooks 2003 users disconnecting from exchange server
How can I display text or a cost based off a selection of checkboxes that are checked?
Show floating point decimal place even for whole numbers in php
What is wrong with the way that I'm writing this if statement?
Image Rollover : Best Practice
Internet Explorer 8 - Number of processes