0

Please help me?

How to make it impossible to write in a form?

16th Jun 2018, 1:14 PM
DaZzle
5 Réponses
+ 2
If you intend make an input not interactive you can add to idd the attribute "disabled": <input type="text" disabled />
16th Jun 2018, 1:40 PM
KrOW
KrOW - avatar
0
DaZzle Why would you create a form in the first place, if you didn't want to fill it?
16th Jun 2018, 6:48 PM
Dlite
Dlite - avatar
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
16th Jun 2018, 6:55 PM
DaZzle
0
DaZzle like KrOW already said, use the "disabled" attribute
16th Jun 2018, 6:57 PM
Dlite
Dlite - avatar
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/ :)
16th Jun 2018, 10:52 PM
Janning
Janning - avatar