'create a notification/alert at a specific time html css angular
i created a notification box that it shows me an alert when i create a notification from the date which i create this notification.
but i want now to add a new feature "start from" or something else, to be this notification active in this time.
For Example: i created the notification in 14:00 but it should appears automatically at 14:30.
how can i do it ? which technic should i do to make it?
thanks for your suggestion.
Solution 1:[1]
look into setTimeout(). It lets you execute a function after an interval in milliseconds. For example:
setTimeout(function(){
// show notification after half an hour
}, 30 * 60 * 1000)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | U.P |
