Purpose
Adding a document title with dynamically generated content
In HTML the <title> tag defines the title of the document. The title must be text-only, and it is shown in the browser's title bar or in the page's tab.

Example:



HTML
<title>Products</title>

You can fill the document title with dynamic content so that our example above looks like this:



The title of the document is also displayed in the Windows taskbar when the browser window is minimized:



Solution
Add a <div> tag with the class 'toptitle'. Within the <div> tag you can use constant text in combination with S10 output tags.  Add style='display:none' if you do not want this title to be displayed in duplicate in the HTML page.

HTML
<body style="width: 100%" onload='init();'>

    
    <div style="display: none" class="toptile">
    Product
    <span class="output" name="myara.matnr"></spawn>
    <span class="output" name="maktx"></spawn>
</div>

Components
S10 Framework