Show hyperlinks in javascript alert
Is it possible to show hyperlinks in javascript alerts? I mean, if I do something like
alert("<a href='http://stackoverflow.com'>LINK</a>");
开发者_高级运维
the alert will show only the plain text "LINK".
Is it possibile to show it like a clickable url?
Thanks
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.
Not possible. Use "custom" alert dialog, you have plenty jQuery plugins for this.
精彩评论