spiegel-keyman/web/docs/engine/reference/util/createElement.md
Marc Durdin 1f82507730 docs(web): deprecate unused and obsolete API endpoints and docs cleanup
Deprecate the following obsolete functions and properties:
* `keyman.helpURL`
* `keyman.util.rgba`
* `keyman.util.toFloat`
* `keyman.util.toNumber`
* `keyman.util.toNzString`

Use correct language for code blocks in Keyman Engine for Web
documentation.

Test-bot: skip
2026-08-12 16:07:22 +02:00

28 lines
516 B
Markdown

---
title: createElement
---
## Summary
Create an unselectable HTML element for the *KeymanWeb* On-Screen keyboard and User Interfaces.
## Syntax
```js
keyman.util.createElement(nodeName);
```
### Parameters
`nodeName`
: Type: `string`
: Name for the newly-created element.
### Return Value
`Element`
: The new, requested user-unselectable HTML element.
## Description
Elements created with this function do not capture the focus. Use `document.createElement` to create normally selectable elements.