prompt

external fun prompt(message: String, default: String = definedExternally): String?(source)

MDN Reference