Window.SetTitle
---------------

Set the title of the window designated by the WindowRef.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Window](component_Window.md) | [1.2](newinversion12.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Window.SetTitle"; WindowRef; Title ) 

**MBS**( **"Window.SetTitle";** /\* Set the title of the window designated by the WindowRef. \*/  
**$WindowRef**; /\* Window Reference is the unique OS level window ID. You can obtain this by using the [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md) functions. Pass zero to access the frontmost window.e.g. 0 \*/   
**$Title**) /\* The titlee.g. "Hello World" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WindowRef | Window Reference is the unique OS level window ID. You can obtain this by using the [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md) functions. Pass zero to access the frontmost window. | 0 |
| Title | The title | "Hello World" |

### Description

Set the title of the window designated by the WindowRef.  
The WindowRef is returned by either [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md). Although it works on both platforms it was added specifically for Windows, where it can be used to Change the Name of the Application Window.  
### Examples

Set the Title of the Application Window

 MBS ( "Window.SetTitle" ; $$WindowRef ; "New Title")  
### See also

- [WebView.CreateWindow](WebViewCreateWindow.md)
- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.GetTitle](WindowGetTitle.md)
- [Window.SetTitlebarAppearsTransparent](WindowSetTitlebarAppearsTransparent.md)
- [Window.SetTitlebarSeparatorStyle](WindowSetTitlebarSeparatorStyle.md)
- [Window.SetTitleIcon](WindowSetTitleIcon.md)
- [Window.SetTitleVisible](WindowSetTitleVisible.md)

### Release notes

- **Version 11.2**
    - Deprecated [Window.ResizeContentView](https://www.mbsplugins.eu/WindowResizeContentView.shtml), [Window.GetTitlebarAppearsTransparent](https://www.mbsplugins.eu/WindowGetTitlebarAppearsTransparent.shtml) and [Window.SetTitlebarAppearsTransparent](https://www.mbsplugins.eu/WindowSetTitlebarAppearsTransparent.shtml) functions.
- **Version 11.0**
    - Added [Window.GetTitlebarSeparatorStyle](https://www.mbsplugins.eu/WindowGetTitlebarSeparatorStyle.shtml) and [Window.SetTitlebarSeparatorStyle](https://www.mbsplugins.eu/WindowSetTitlebarSeparatorStyle.shtml) functions.

### Example Databases

- [WebViewer/Custom WebView](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/Custom%20WebView.shtml#13ScriptAnchor_)

### Blog Entries

- [Creating Custom Web Viewer Windows in FileMaker with MBS Plugin](https://www.mbsplugins.de/archive/2026-05-11/Creating_Custom_Web_Viewer_Win/monkeybreadsoftware_blog_filemaker)
- [MBS @ FMTraining.TV](https://www.mbsplugins.de/archive/2022-04-15/MBS_@_FMTrainingTV/monkeybreadsoftware_blog_filemaker)
- [Customize your FileMaker solution](https://www.mbsplugins.de/archive/2021-04-25/Customize_your_FileMaker_solut/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[Window.SetTag](WindowSetTag.md) - [Window.SetTitleIcon](WindowSetTitleIcon.md)

[HTML Version](WindowSetTitle.shtml)