I\'ve developed a couple of alert boxes that display on all site pages.
The user is able to close each box separately:
It possible to that with sessionStorage
of javascript.
For exemple :
Storage the current date ( var currentDate
) and date after one minute (var afterOneMinute
)in sessionStorage.
Each click on a button or reload page, change current date and compare them with afterOneMinute
variable and after hide or show box
html File
Box
hello
JS