setTitle method: Set the title of a DFrame used for the title Bar and for the Buttons of task Bars and task Menus.
setTaskBarTitle method: Set the title of a DFrame only for the Buttons in task Bars and task Menus.
setTitleAsHTMLTitle method: Set the title of DFrame from the <TITLE>…</TITLE> HTML tag of the document inserted in the DFrame. Does not work with Netscape 4.
in a page inserted in a DFrame:
function onLoadDFrame() {
if (dFrame.getEditMode()) thisDFrame.setTitle('EditDocument')
else thisDFrame.setTitle('Read document')
}
Demo
file: setTitle.html
Run the example
See the source code
The setTitle method is also used in
file: onLoadDframe.html
Run the
example
See the source code
DFrame.setTitle(stringTitle)
DFrame.setTaskBarTitle(stringTitle)
DFrame.setTitleAsHTMLTitle(flag)
stringTitle
setTitle and setTaskBarTitle methods.String. The string defining the title
flag
setTitleAsHTMLTitle method. Boolean. If true (default = false) the title of DFrame from the <TITLE>…</TITLE> HTML tag of the document inserted in the DFrame.
no return value