Window Alert

Show an alert/notification in the browser window


How to Use

To use the Window alert brick allows you to trigger an alert on your screen.

To configure it change the value in the message input field.

This is the value that will be shown in an alert popup on the screen, blocking further input on the page until confirmed.

Use cases

  • Notifying the user of an action that's about to happen that might be important
  • Showing the result of a brick executed in a previous step

Inputs

Name Required Type Description
type string The alert type/style. 'window' uses the browser's native window alert dialog, which the user must dismiss
message string, number, boolean The text/value you want to display in the alert
duration number Duration to show the alert, in milliseconds. Ignored for 'window' alerts

Outputs

Name Required Type Description
No outputs for this brick defined.

Details

ID @pixiebrix/browser/alert
Author @pixiebrix
Version 1.7.0
Created Jan. 3, 2022
Updated June 13, 2022