+ 2

Can you put an <a> tag in an alert box? And if you can, how?

I really want to know

18th Jul 2019, 5:31 AM
Rishan [da_coder, semi-active]
Rishan  [da_coder, semi-active] - avatar
3 ответов
+ 4
No, alert boxes only accept plain text. If you want a popup with any sort of html/styling you'll need to write your own css and JavaScript, or use a library (one that I've heard of is sweetalert).
18th Jul 2019, 5:35 AM
JS Coder
+ 2
Not possible.
18th Jul 2019, 6:10 AM
Sonic
Sonic - avatar
+ 1
I know the second part.
18th Jul 2019, 5:36 AM
Rishan [da_coder, semi-active]
Rishan  [da_coder, semi-active] - avatar