Found work-around for the contextMenu popup opening onclick handler, by using the contextMenus.onClicked event, rather than the onclick property, to attach the event handler that opens the options tab.