The ask Command

Syntax

ask <expression>

Description

The ask command displays a browser prompt() dialog with the given message. The user's input is placed into it (the result). If the user cancels, it is null.

Examples

<button _="on click
  ask 'What is your name?'
  if it is not null
    put 'Hello, ' + it into #greeting
  end
">Ask Name</button>
<span id="greeting"></span>