搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

a text area every moment i edited dynamically the scroll bar goes to the top. i know it is not a problem with the website because it works with other browsers

  • 3 个回答
  • 1 人有此问题
  • 2 次查看
  • 最后回复者为 sarafo

more options

there is a problem with the scroll bar of a text area. whenever it is edited dynamically the focus area moves to the top instead of holding the focus in the area of the new inserted text. even if i move it down by hand it goes up again.

there is a problem with the scroll bar of a text area. whenever it is edited dynamically the focus area moves to the top instead of holding the focus in the area of the new inserted text. even if i move it down by hand it goes up again.

被采纳的解决方案

ok i fixed by code in my program. when i finished editing, i use this code in javascript. document.getElementById("chatMainTxt").scrollTop=document.getElementById("chatMainTxt").scrollHeight;

定位到答案原位置 👍 0

所有回复 (3)

more options

here's a way to make scrolling more pleasant:

1. Start Firefox.

2. Click Tools, Options.

3. Click the Advanced icon, then look in the Browsing section.

4. Enable Use smooth scrolling, then click OK.

more options

its already activated. My problem is that when i try to edit the text area dynamically it refreshes and goes to the top

more options

选择的解决方案

ok i fixed by code in my program. when i finished editing, i use this code in javascript. document.getElementById("chatMainTxt").scrollTop=document.getElementById("chatMainTxt").scrollHeight;