Navigating from one GUI menu to Another?

I feel there’s an easy answer to this, but I cannot find it on the Internet (so please pardon me if it’s obvious).

I want to move from one GUI menu to another GUI menu. Specifically, the player clicks on a menu button that says “Play”, and he is then moved to another menu with a new set of buttons.

Any ideas? I’m using Javascript.

use gui.window… or simply create function containing different gui menus call them when needed…

Just use bools

if(GUI.Button()) {
    ShowMenu01= true;
    currentmenu = false;
}