Change document.title after click menu item

how can i change the document.title after clck on an menu item?
tks

Set a session var like [new_title] and put that in the Document title area.
Then set that session var when they click the menu item.

///Set a session var after selecting a menu item
//on execute event of Menu App
////
$item = {sc_menu_item};
////
switch($item)
{
case “item_1”:
[new_title] =‘Title1’;
break;
case “item_2”:
[new_title] = ‘title2’;
break;
case “item_3”:
[new_title] = ‘title3’;
break;
default:
// do nothing
}

Thank you
the change of the value of the variable works
but it is also necessary to reload the page for the domuent.title to update
sc_redir (menu.php); before break; does not work
some javascript code?

try
sc_exit(sel);

That should do the trick

like this doesn’t work


sc_exit(sel);
break;

Why not put it after the break… when the click is done and the Title value has been set?