0

Autofocus is used on forms and buttons. What I need is a scroll box to be auto selected. Note that this is not an text area. The code I have for the scroll box is:

<div style="height:120px;width:120px;border:1px solid #ccc;font:16px/26px Georgia, Garamond, Serif;overflow:auto;">

As you can see, once there's enough text in this box, the box will grow scroll bars... that's why we call it a scroll box! You could also place an image into the scroll box.

</div> 

I need this scroll box to be auto selected because I'm making a project where my website is controllable through external buttons. The up arrow and down arrow are used to read an informative text. Of course the element has to be selected first in order for it to work.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Judith
  • 1
  • 1
  • 1
    can you show your effort? – Enamul Hassan Dec 01 '15 at 00:38
  • If by effort you mean code (sorry english is not my native language) . This is the code I used:
    As you can see, once there's enough text in this box, the box will grow scroll bars... that's why we call it a scroll box! You could also place an image into the scroll box.
    – Judith Dec 01 '15 at 11:56
  • Never post code as comment. add it in your question by edit. – Enamul Hassan Dec 01 '15 at 12:09
  • sorry it's the first question I posted on this site, I edited my question so now the code is visible. – Judith Dec 01 '15 at 19:14

0 Answers0