Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Macro Reference > Document Object > Properties

Macro: Name Property (Document Object)

Scroll Prev Top Next More
EmEditor Home - EmEditor Help - EmEditor Macro Reference - Document Object

Name Property

Retrieves the file name of the document without its path, or renames the file name of the document. If the document is untitled, renames the document title without saving the file.

[JavaScript]

strName = document.Name;

document.Name = strName;

[VBScript]

strName = document.Name

document.Name = strName

Examples

[JavaScript]

alert( document.Name );

[VBScript]

alert document.Name

Version

Supported on EmEditor Professional Version 4.00 or later.

Copyright © 2003-2022 by Emurasoft, Inc.