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.


strName = document.Name;

document.Name = strName;


strName = document.Name

document.Name = strName



alert( document.Name );


alert document.Name


Supported on EmEditor Professional Version 4.00 or later.

Copyright © 2003-2022 by Emurasoft, Inc.