0
Please help me?
How to make it impossible to write in a form?
5 ответов
+ 2
If you intend make an input not interactive you can add to idd the attribute "disabled":
<input type="text" disabled />
0
DaZzle Why would you create a form in the first place, if you didn't want to fill it?
0
because I create an interpreter and in one form I will enter the code and in the second form there will be an output which in my opinion should not change
0
Hi DaZzle!
After pondering your question for a bit, I do think that KrOW's answer is fine if you literally meant "form" as in "<form><input></form>" in HTML.
But if you didn't literally require "form" and you meant more broadly as in "form-like area", then almost every other element outside of "<form><input></form>" is not content editable by default in HTML. So, since you were interested in creating an interpreter, as you described, I thought I would plop in something that your question sparked in my memory to see if it would be of any use to you.
https://htmledit.squarefree.com/
Viewing the source:
view-source:https://htmledit.squarefree.com/
:)