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
"<h1>aaaa</h1>" with document.frameName.textareaName.value="<h1>aaaa</h1>". 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 "no". hopefully, you guys can hit me down)
thx in advance,
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
"<h1>aaaa</h1>" with document.frameName.textareaName.value="<h1>aaaa</h1>". 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 "no". hopefully, you guys can hit me down)
thx in advance,