← All built-ins / ui_focus()

ui_focus()

ui_focus(...$args): int

Parameters

NameTypeDescription
$handleintcontrol 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.

See also

ui_add()