EmEditor Home - EmEditor Help - EmEditor Macro Reference - Document Object

ReadOnly Property

Retrieves or sets whether the document is read-only.

[JavaScript]

bReadOnly = document.ReadOnly;

document.ReadOnly = bReadOnly;

[VBScript]

bReadOnly = document.ReadOnly

document.ReadOnly = bReadOnly

Examples

[JavaScript]

if( document.ReadOnly )  alert( "The document is read-only" );
else  alert( "The document is not read-only." );

[VBScript]

If document.ReadOnly Then
    alert( "The document is read-only" )
Else
    alert( "The document is not read-only." )
End If

Version

Supported on EmEditor Professional Version 4.00 or later.

Copyright 2003-2014 by Emurasoft, Inc.