WebExeBuilder Documentation

getTitle

Category: Window Management

Namespace: web.window.getTitle

Description

Gets the current window title text.

Syntax

const title = await web.window.getTitle();

Parameters

None

Returns

Promise<string> - Returns a promise that resolves with the current window title

Examples

Simple example

const title = await web.window.getTitle();
console.log('Window title:', title);

Display in UI

const title = await web.window.getTitle();
document.getElementById('currentTitle').textContent = title;

Use Cases

  • Get current window title for display
  • Check window title state
  • Log window title for debugging

Notes

  • Returns the current Caption property of the window
  • Returns empty string on error
  • Title is returned as-is with no modifications