Save this video free

Making a Toast with a Popover in HTML/CSS/JS (9-11-2026) | CIS311

Kenan Casey · 42:35 · Watch on YouTube

Part of Kenan Casey: CIS 311. See all 11 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Kenan Casey builds a transient form-confirmation toast with HTML’s manual popover feature, CSS, and vanilla JavaScript, using a simulated submit-button click rather than sending form data. The walkthrough covers accessible status semantics, fixed-position styling, DOM event handling, a 4,000-millisecond dismissal timer, and pausing that timer while a pointer is over the toast.

Key takeaways

Chapters

0:00 Define the Toast Markup and Manual Popover
5:00 Set Up CSS and Style-Guide Color Variables
10:00 Refine Toast Position, Spacing, and Typography
14:00 Connect the Submit Button to the Toast Popover
19:00 Dismiss the Toast with a Four-Second Timeout
25:00 Consider Multiple Toasts and Pointer-Aware Usability
33:00 Store and Reset the Toast’s Active Timer
38:00 Fix Event-Listener Callbacks and Test the Toast

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 So, we are looking at homework three, a form styling challenge for content mentors, and we're specifically looking at how to do the this popup box after the form is submitted. We're not really submitting the form to anything, so we'll kind of be faking that part. Uh, but I do want the message this this box to appear and then disappear. I think this is called a toast in the industry. Have you heard of toast? Um, so that's a keyword for this thing that auto appears. It doesn't take over your full screen like it's not a modal in the sense that it

0:47 blacks out or dims everything, but then it also auto dismisses. Okay. So, in index, I'm going to put this in a div and put just a little bit of um styling in in this. Um, let's see. Actually, I need to look at the let's let's see the picture again. I already forgot it. Yeah, it says message sent on the first line. It looks like there's a little check box which I bet is under assets and images. Yeah, icon success that's there. And then it's got that second line there. So, I don't know. I don't know how it would

1:39 fall in the um hierarchy. So, I think I'm just going to make them both paragraphs. Message sent And then another paragraph. That's this. And then I would probably want to put like a class of let me call it

2:28 toast title and a class of toast. text that may be almost unnecessary. Uh the div is what I really need to mark up. And I'm going to give the div an ID equal to toast because that's what it is. And this is the one toast that I have on here.

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Kenan Casey.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.