Get current Page Title

0
Hi forum, I need the functionality ‘Get Current Page title’. The use case is that I created an In App Helptext module that displays the Helptext of a screen. I already use a Javascript to get the (technical) Module and Pagename (mx.ui.getContentForm().path;) and that is the unique identifier to the Helptext. Besides that it would be nice to have the Page Title because that gives the functional name of the page. This functionality exists in ATS but I don't use that.  Somebody already has a Javascript (or solution) to Get Current Page Title?   Thanks, Max
asked
1 answers
1

Would a generic JavaScript line of code work for you in your case?

var title = document.getElementsByTagName("title")[0].innerHTML;
console.log(title)
answered