In Javascript, we use prompt and alert.
In Javascript, you put the answer in whatever variable you like.
(Actually, because Javascript is so powerful, there is a way to precisely control the look and feel of dialogs, but for the moment we'll stick to the simple method)
|