Skip to content

SetPageTitle - cBaseLocalControlHost

Sets the page's HTML title element dynamically

Type: Procedure

Parameters

Parameter Type Description
sTitle String The string to set the page title to

Syntax

Procedure SetPageTitle String sTitle

Call Example

Send SetPageTitle sTitle

Description

By default, the page title (the text displayed in the browser's caption bar) of a Framework Web Application is hard coded in Index.html. You can use SetPageTitle to set this dynamically.

Sample

This example show how to set the page title in the OnLoad event of the main cWebApp object.

Object oWebApp is a cWebApp

    Procedure OnLoad
        Send SetPageTitle "This is a Sample Page Title"
    End_Procedure

End_Object