|
May 22, 2000 Making Elements Editable Tips: May 2000
Yehuda Shiran, Ph.D.
|
|
Internet Explorer supports editable regions within an HTML document. Any element in a document can be switched into edit mode without reloading the document. The edit mode can also be switched off per element, without reloading the document. One of the benefits of this new capability is the ability to design and modify a form, without reloading the document for every change. The switching is done via the contentEditable property:
where
The following example shows a simple
and now let's demo the script. Here is the line to be edited: Try editing this line... Were you able to edit the line above?
The following example shows a simple
and now let's demo the script. Here is the line to be edited: Try editing this line... Were you able to edit the line above?
People who read this tip also read these tips: Look for similar tips by subject: |