最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

url - Show hyperlinks in javascript alert - Stack Overflow

programmeradmin1浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论