Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

3 Questions on Textarea

Status
Not open for further replies.

WhiteSox

Programmer
May 22, 2001
20
0
0
US
I have 3 questions on TextArea:

1) Suppose a textarea contains a couple of lines and i want it to scroll down to the last line. is there any code compatiable to both IE and NN?

(I know for IE, i can use the following to scroll down one page:
document.frameName.textareaName.doScroll("pageDown")

what's its counterpart in Netscape?)

2) Suppose a textarea contains thousands of lines and I'm now at the beginning of it. How to go to its tail (the last line)?

(Call document.frameName.textareaName.doScroll("pageDown") 1000 times. well, that works. but.... my eyes don't feel happy...)

3) textarea treats its value as pure texts, so I always see
&quot;<h1>aaaa</h1>&quot; with document.frameName.textareaName.value=&quot;<h1>aaaa</h1>&quot;. Now, can I let textarea play with its value as HTML contents? If so, I can do something interesting.

(to this question, my answer is &quot;no&quot;. hopefully, you guys can hit me down)

thx in advance,

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top