--- title: "alert" slug: "user-alert" updated: 2025-11-06T18:55:25Z published: 2025-11-06T18:55:25Z canonical: "docs.doc-know.com/user-alert" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.doc-know.com/llms.txt > Use this file to discover all available pages before exploring further. # alert ### user.alert Displays a popup message to the user. ### Input Parameters | Name | Type | Required | Description | | --- | --- | --- | --- | | **message** | Text | Yes | Message to display | | **[title]** | Text | No | Title to display (above message) | ### Returns No return value. ### Examples ``` // display popup message to the user user.alert("Please enter your age."); ``` ``` // display popup message to the user (with custom title) user.alert("Please enter your age.", "Oops!"); ``` ### Remarks Use this function when you need to display a message to the user that must be dismissed before they can continue. Tip The runtime also supports more useful native validation features, so you don't need to use this function normally for routine input validation.