Creating the menu commands

Add the following HTML menu tags to the end of the menus.xml file to create a menu called MyMenu that contains the Undo and Redo menu items.

<menu name="MyMenu" id="MyMenu_Edit"><menuitem name="MyUndo" key="Cmd+Z" file="Menus/MyMenu.htm" arguments="'undo'" id="MyMenu_Edit_Undo" /><menuitem name="MyRedo" key="Cmd+Y" file="Menus/MyMenu.htm" arguments="'redo'" id="MyMenu_Edit_Redo" /></menu>

The key attribute defines keyboard shortcut keys that the user can type to invoke the menu item. The file attribute specifies the name of the command file that Adobe Dreamweaver executes when Adobe Dreamweaver invokes the menu item. The value of the arguments attribute defines the arguments that Adobe Dreamweaver will pass when it calls the receiveArguments() function.

The following figure shows these menu items:

This is a picture of the feature being described.