I want to execute javascript on a menu item click. how can I do that? Kindly advise.
Code:
MenuItem support = new MenuItem("Click here"); support.addClickHandler(new com.smartgwt.client.widgets.menu.events.ClickHandler() { @Override public void onClick(MenuItemClickEvent menuItemClickEvent) { ///////////////some example Javascript to be invoked window.alert("test"); } });
Comment