搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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;