Skip to content

How to wait for user to write string

cl4cnam edited this page Dec 5, 2023 · 4 revisions

General case

Just code:

myVariable := awaitHumanText()

This displays a new empty box which the user can type in.
As soon as the user has type "enter" key, awaitHumanText returns what the user has typed.

If you want to incorporate your box into another html element

code:

myVariable := awaitNewHumanTextIn(enclosingElement)

Clone this wiki locally