Is there a way to make a text area uneditable in a browser? When i click on it online im able to erase / write and i dont want that.
The goal is to create a scroll box because the text is enormous.
If you don't want it to be editable don't use a textarea. Textareas are designed to be editable.
To create a non editable scroll area, use a <DIV> instead. with specified dimensions, and the overflow attribute set to Auto or scroll.
Code:
<div style="width:250px; height:250px; overflow:scroll;>
Lots of text here.....
</div>
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.