'isContentEditable' Example : isContentEditable « Javascript Properties « JavaScript Reference

JavaScript Reference
1.Event Handlers Reference
2.Javascript Collections
3.Javascript Methods
4.Javascript Objects
5.Javascript Properties
JavaScript Reference » Javascript Properties » isContentEditable 
'isContentEditable' Example

<script language="JavaScript">
function function1() {
    myP.innerText = "content editable true";
    document.all.myP.contentEditable = "true"
function function2() {
    myP.innerText = "content editable false";
    document.all.myP.contentEditable = "false"

function function3(){
<p id="myP">Try to edit this text by overwriting any part of it.</p>
<button onclick="function1();">Make the text editable</button>
<button onclick="function2();">Make the text non-editable</button>
<button onclick="function3();">isContentEditable</button>

Related examples in the same category
1.'isContentEditable' Syntax and Note
2.'isContentEditable' Possible Values
3.'isContentEditable' is applied to
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.