url - Show hyperlinks in javascript alert - Stack Overflow

Is it possible to show hyperlinks in javascript alerts? I mean, if I do something likealert("<

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
Add a ment  | 

2 Answers 2

Reset to default 3

Not 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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745263541a4619321.html

相关推荐

  • url - Show hyperlinks in javascript alert - Stack Overflow

    Is it possible to show hyperlinks in javascript alerts? I mean, if I do something likealert("<

    12小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信