Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I put a link to a webpage in a JScript Alert dialog box?

I would like to put a link to a webpage in an alert dialog box so that I can give a more detailed description of how to fix the error that makes the dialog box get created.

How can I make the dialog box show something like this:

There was an error.  Go to this page to fix it.
wwww.TheWebPageToFix.com 

Thanks.

like image 248
Keng Avatar asked Nov 28 '22 06:11

Keng


1 Answers

You can't. Alert boxes don't support html. You should display the error as part of the page, it's nicer than JS alerts anyway.

like image 64
Matthias Winkelmann Avatar answered Dec 05 '22 04:12

Matthias Winkelmann