How do I dynamically change the page title on a Delphi TMS Web Core Website?

86 views Asked by At

I have a website with various frames that get shown/hidden depending on what item is chosen on the left menu as can be seen here:

Roselt Developer Tools - Web Version

When I click on an item on the left-hand side menu, I want to change the browser tab page title to match that of the item chosen.

How can I change the page title dynamically in run-time via Delphi code?

1

There are 1 answers

1
Shaun Roselt On BEST ANSWER

You can use the document class from the Web unit and change the title public variable on the document class:

document.title := 'Your new page title';