thats great thats solved all my problems with formating
all i need to do now is find a piece of code to postiiton my scroll bar
got any links up your sleeve?
thanks again
Main Topics
Browse All TopicsHello experts
How can I set the scroll bar position in a textarea to the bottom of the textarea
also how can i apply formatting to text inside the textarea
for example i want to make some text bold and some italic
and everything i have tried just shows up the tags
and not the actual formatting
thanks people
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Use offsetHeight to determine the TextArea height, scrollHeight to determine the total length of text in the textarea (in pixels) and scrollTop to set the position of the scrollbar like in the example below:
<html>
<head>
<script>
function Down() {
el=document.getElementById
el.scrollTop = el.scrollHeight - el.offsetHeight;
}
function Up() {
el=document.getElementById
el.scrollTop = 0;
}
</script>
</head>
<body>
<textarea id="sample1">
line #1
line #2
line #3
line #4
line #5
line #6
line #7
line #8
line #9
line #10
line #11
line #12
line #13
line #14
line #15
</textarea><br>
<input type="button" onclick="Up();" value="Up">
<input type="button" onclick="Down();" value="Down">
</body>
</html>
Business Accounts
Answer for Membership
by: rnagliPosted on 2005-07-16 at 19:39:49ID: 14460042
Enclose it in div, disable scrolling on textarea.. It's easy to control scrolling on div using javascript.
textarea has readOnly property , set it to "true"...