JavaScript Reference/Javascript Properties/designMode

Материал из Web эксперт
Перейти к: навигация, поиск

"designMode" Example

    
<html>
<body>
<button onclick="alert(document.designMode);">Design Mode Status</button>
</body>
</html>



"designMode" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |document                                                      |
+----------------+--------------------------------------------------------------+



"designMode" Possible Values

Possible Values
on                      can be modified
off or inherited        the default; cannot be modified.



"designMode" Syntax and Note

Note:
Read and write property. 
Specifies whether or not the document content can be modified. 
    
Syntax:
    
document.designMode = value