← All built-ins / ui_focus()
ui_focus()
ui_focus(...$args): int
Parameters
| Name | Type | Description |
|---|---|---|
| $handle | int | control handle |
Return value
Gives the control the keyboard focus.
Example
echo "ui_focus($input);";
ui_focus($input);
This call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.