menu.hide()
m.hide()
Use this function to hide a menu programmatically. Internally, it is used for pop-up submenus. A menu that has been created with the "realSticky()" method cannot be hidden.