+ 2

Link in alert box

anyone knows how to add a link in an alert box using JavaScript and Html?

31st Jan 2018, 2:14 PM
Sobhan Complex
Sobhan Complex - avatar
4 Respostas
+ 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
31st Jan 2018, 7:38 PM
Burey
Burey - avatar
+ 6
@Morpheus, i actually never used altertify.js. just searched for something that does not require jQuery for an example ūüėÖ
31st Jan 2018, 9:08 PM
Burey
Burey - avatar
+ 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
31st Jan 2018, 8:56 PM
Morpheus
Morpheus - avatar
+ 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.
31st Jan 2018, 2:17 PM
Faisal
Faisal - avatar