Can you provide more details that you want to do?
We are displaying a plot from a root file on a website via jsroot. We would like to be able to access the title of said plot to add the text to a button on the website. is this possible?
It depends that kind of object is drawn.
Typically one draw histogram and see its title.
If in the JS code you have something like:
JSROOT.openFile("https://root.cern/js/files/hsimple.root") .then(file => file.readObject("hpxpy;1")) .then(obj => JSROOT.draw("drawing", obj, "colz"));
Then shown title is just
If one displays TCanvas objects, one should do something like