Toast

Toasts are basically notification messages that appear on the screen to inform the user about something. They disappear after a few seconds.

Simple Toast

Simple Toast has plain content, an easily visible background color and appears on the screen for a few seconds then disappears. It appears on the bottom right corner of the screen. To use this, you can wrap the toast content in the class toast-demo and use further styled classes as given in the code below. You can change the background color of the toast according to various scenarios like success or failure.

Message sent!

Message sent!

You can paste the below code to get the simple toast.

JavaScript