How to detect currently opened tab and pass its name to a text element?

I have a tab widget on the page. I need to change the standalone title text above the tab widget, to reflect the name of the currently opened tab. How can I implement it?  
1 answers

One approach I would suggest is using combination of java script and css.

The tabs are rendered as <Li> tags, once you click a tag Mendix appends class – ‘active’ to that, you can use java script to get the contents in the child of li with a class – ‘Active’  and then you can copy this to a dummy placed on top.