Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

confirm

import { confirm } from "https://cdn.jsdelivr.net/gh/u1ui/dialog.js@x/dialog.js";

Creates and shows a dialog with a confirmation message.

@example
if (await confirm('Do you want to delete this item?')) {
   deleteItem();
}
function confirm(text);
§
confirm(text)
[src]

§Parameters

§
text
[src]
  • The text to be displayed in the confirmation dialog.