Newer Version Available
addToBrowserTitleQueue() for Lightning Experience
Adds a string to a list of titles that rotate in the browser title bar every three
seconds.This method works only in
Lightning console apps.
This method isn’t supported for Lightning Web Components
(LWC).
Arguments
| Name | Type | Description |
|---|---|---|
| title | string | The browser tab title to add. |
Aura Components Sample Code
This component has a button that, when pressed, adds a string to a list of titles that rotate in the browser title bar every three seconds.
Component code:
Controller code:
Response
This method returns a promise that, upon success, resolves
to true.