+ 2
Link in alert box
anyone knows how to add a link in an alert box using JavaScript and Html?
4 odpowiedzi
+ 7
you cannot add link to native alert box
however there are numerous libraries which can create custom alert/prompt/confirm dialogs.
if you are using jQuery, you can use jquery-confirm
https://craftpip.github.io/jquery-confirm/
also, there is alertify.js
https://alertifyjs.org
and many more are just a google search away
+ 6
@Morpheus, i actually never used altertify.js.
just searched for something that does not require jQuery for an example 😅
+ 4
@Burey, just tried alertify s all example , it's sweet, it amazes me that just to make those 7 alert types accessible to all , so much work is required, github link starred👍, not much activity though
+ 3
I don't think it would be possible to link a functioning link in an alert box as you would with the <a> tag.