How to Create Toast Notifications (or Popups) - HTML, CSS & JavaScript Tutorial

How to Create Toast Notifications (or Popups) - HTML, CSS & JavaScript Tutorial

dcode

4 года назад

30,286 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@rezarahman1782
@rezarahman1782 - 25.03.2022 18:12

God Bless You.

Ответить
@Pareshbpatel
@Pareshbpatel - 02.09.2021 22:11

Great Tutorial on creating Toast Notifications. Thanks, Dom

{2021-09-02}

Ответить
@gxsoft
@gxsoft - 31.07.2021 14:32

Hi Dom,

Thanks a lot!
Simple, preciss & powerful.


gab,
from Rio Cuarto, Argentina

Ответить
@jinyuchan3983
@jinyuchan3983 - 14.07.2021 12:43

does anyone know why there is an error for classList of undefined being thrown?

Ответить
@jinyuchan3983
@jinyuchan3983 - 14.07.2021 12:04

Cannot read property 'classList' of undefined

Ответить
@notanoption1793
@notanoption1793 - 13.02.2021 12:23

I'm getting an error when loading in the page:
Uncaught SyntaxError: Unexpected identifier

The error lists rulenumber 9 of toast.js (the line where show(message, state) { is located)

How do I fix this? whenever I deleted the init() it did work for some reason I believe, but yeah, it's init()

Ответить
@oguzhanacar8158
@oguzhanacar8158 - 10.01.2021 01:58

Thanks for the tutorial. What improvement should we do in order to be able to create more than one notification with one button so that the notifications are arranged one after the other whenever a button is clicked?

Ответить
@isabelphillips451
@isabelphillips451 - 11.12.2020 22:44

You're blessed for this ... I learnt a lot from this very simple tutorial

Ответить
@antoniomurteira9577
@antoniomurteira9577 - 19.11.2020 22:17

could you show the source code that you show initially? i understood your tutorial but i dont know how to connect it to a button now and have the toast work with the correct message, thank you!

Ответить
@shaheeap
@shaheeap - 06.10.2020 06:15

U realy helped me, i was wondering how the 'sweetalert' js works while we dont add any html elements to page

Ответить
@jeremymarnay1049
@jeremymarnay1049 - 25.06.2020 09:12

Thanks for this tutorial!

Ответить
@TheSUDIPTOGHOSH
@TheSUDIPTOGHOSH - 10.06.2020 08:48

Nice video, could you please show how to add buttons, like 'OK' and 'CLOSE' on the toast bar?

Ответить
@apnagamer61
@apnagamer61 - 03.04.2020 12:29

Nice sir👍👍👍👍

Ответить
@webdevbrasil2761
@webdevbrasil2761 - 05.02.2020 02:10

fantastic, great video,

Ответить
@dan-cj1rr
@dan-cj1rr - 29.01.2020 20:37

the code pen isnt working ( we see item as list)

Ответить
@raymondmichael4987
@raymondmichael4987 - 25.11.2019 11:10

Good tutorial, but keyboard clicks which don't correlate with the visible typed words annoyed me.

But good tutorial.

Ответить