setMenuText()
Description
Specifies the text that should appear in the menu.
NOTE | Do not use this function if you are using getDynamicContent(). |
Arguments
{arg1}, {arg2},...{argN}
- If the
argumentsattribute is defined for amenuitemtag, the value of that attribute passes to thesetMenuText()function (and to the canAcceptCommand(), isCommandChecked(), and receiveArguments() functions) as one or more arguments. Theargumentsattribute is useful for distinguishing between two menu items that call the same menu command.
Returns
Adobe Dreamweaver expects the string that should appear in the menu.
Example
function setMenuText(){ if (arguments.length != 1) return ""; var whatToDo = arguments[0]; if (whatToDo == "undo") return dw.getUndoText(); else if (whatToDo == "redo") return dw.getRedoText(); else return "";}