Add JavaScript Function To Menu
Posted: Thu Apr 18, 2019 12:14 am
I've searched around and only found that I could add a JavaScript function call to the contextual pop-up menu. I could not find anything about adding to a Document Association menu or the Application's main menu.
I would like to be able to add a menu item on the topmost Menu, e.g. OurCompany, and then add submenu choices that invoke JavaScript.
Example:
...Document Window OurCompany Help
submenu1
submenu2
submenu2.1
submenu2.2
I'm guessing I might be able to accomplish the menu build-out in Java, but the question then becomes how do I tie my JavaScript code to the submenus?
I would like to be able to add a menu item on the topmost Menu, e.g. OurCompany, and then add submenu choices that invoke JavaScript.
Example:
...Document Window OurCompany Help
submenu1
submenu2
submenu2.1
submenu2.2
I'm guessing I might be able to accomplish the menu build-out in Java, but the question then becomes how do I tie my JavaScript code to the submenus?