Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the function to be invoked when the command is clicked.
Syntax
var onclick = menuCommand.onclick;
menuCommand.onclick = onclick;
Property value
Type: function
The function to be invoked.
Remarks
This is equivalent to calling addEventListener("click", function, false);.
Requirements
Minimum WinJS version |
WinJS 1.0 |
Namespace |
WinJS.UI |
See also
Designers
Guidelines for flyouts
Guidelines for context menus