Search
MenuItem.target Property
See Also
 






Gets or sets a value indicating where the linked document is loaded.

Namespace: MindFusion.Common.UI
File: MenuItem.js

 Syntax

JavaScript  Copy Code

get target() {}

 Property Value

String. One of the allowed HTML link target attribute values.

 Example

The following sample creates a new instance of the Menu class and ads one MenuItem to it. The menu item opens the link in a new window.

JavaScript  Copy Code

var menu = new ui.Menu(document.getElementById("links"));
menu.loadOnDemand = true;

var menuItem = new ui.MenuItem("Start", "index.html");
menuItem.target = "_blank";
menu.items.add(menuItem);

 See Also