|
home / documentation / reference / menutitle
MenuTitle
- Description:
- The title text that is applied to menus.
- Value:
- String, "", or JavaScript expression that returns a String/"".
- Applies To:
- Menus.
- Browser Compatibility:
- MenuTitle is not supported in Netscape 4.x.
- Comments:
- MenuTitle is transfered directly to the menu element's
title property after the menu is created. Some browsers render
title elements as "tooltips" when the user hovers the mouse over
a titled element; other user agents may use the title attribute
for accessibility reasons.
- Examples:
// Ok:
MenuTitle:"Products Menu",
MenuTitle:"",
MenuTitle:(window.showTitle)?"Products Menu":"",
// if the user defined variable "showTitle" is true,
// then the title is "Products Menu"
// Incorrect:
MenuTitle:Products Menu, // Strings must be quoted
MenuTitle:'(window.showTitle)?"Products Menu":""',
// no quoted expressions
- Default:
- ""
- See Also:
-
ItemTitle
|