Is it possible to show hyperlinks in javascript alerts? I mean, if I do something like
alert("<a href=''>LINK</a>");
the alert will show only the plain text "LINK".
Is it possibile to show it like a clickable url?
Thanks
Is it possible to show hyperlinks in javascript alerts? I mean, if I do something like
alert("<a href='http://stackoverflow.'>LINK</a>");
the alert will show only the plain text "LINK".
Is it possibile to show it like a clickable url?
Thanks
Share Improve this question asked Nov 15, 2010 at 15:21 JuanDeLosMuertosJuanDeLosMuertos 4,64015 gold badges58 silver badges87 bronze badges 1- Does this answer your question? Link in Javascript alert – outis Commented Oct 17, 2022 at 20:51
2 Answers
Reset to default 3Not possible. Use "custom" alert dialog, you have plenty jQuery plugins for this.
It is possible if you make your own web browser, which you won't do, because… well, just because. Otherwise, it's impossible (still).
However, alert
has always sucked, so a modal dialog may be better.