Can i use Javascript in a html snippet in Layout page to check class usage in a snippet?

I have a menu (navigation) in my Layout page. When clicked the menu-items change color. But if i go to the profile page of an employee (coming from the project page) the menu item stays on "Project" instead of changing to "Employees" because I originated from the Project detail page and not the Employee overview.   I gave a textbox in the Employee page the class 'employee' so as to check if that class is used but Mendix seems to ignore my request.
0 answers