Show Notification only using HTML | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Show Notification only using HTML

How can I show pop-up notification on page load only using HTML.??

27th Jul 2018, 12:17 PM
C ++
C ++ - avatar
7 Answers
+ 6
The simple ones can be done using JavaScript purely: alert()
27th Jul 2018, 12:25 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 6
The more complex ones need mire HTML CSS, together with JS
27th Jul 2018, 12:25 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
Usman Khan If you want your own button yes, it needs more than pure JavaScript
27th Jul 2018, 12:40 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
Here the start-up popup without any JavaScript. https://code.sololearn.com/WDE3v4H8jroY/?ref=app
27th Jul 2018, 1:07 PM
Calviղ
Calviղ - avatar
+ 2
can I use HTML inside alert( some html ); ...
27th Jul 2018, 12:33 PM
C ++
C ++ - avatar
+ 2
problem is than it shows ok button. but i dont want this.... i want to create my own button with link.. user always first visit link before closing pop-up..
27th Jul 2018, 12:36 PM
C ++
C ++ - avatar
+ 2
it can be done using JavaScript or jQuery by calling part of HTML Dom and making it visible on page load... but I'm not successful in this. if you have any working code then tell me.. I'm using blogger..
27th Jul 2018, 12:38 PM
C ++
C ++ - avatar