Is it possible to insert HTML code in a JavaScript confirm box?
I just tried & it does not seem to work (I try to add a HTML link), see my code below
<html>
<head>
<script type="text/javascript"> function show_alert() { confirm(<a href="www.url.com">Link text</a>); } </script>
</head>
<body>
<input type="button" onclick="show_alert()" value="Show alert box" />
</body>
</html>
I suspect I might have to use a library such as “jquery-ui’s dialog” to get this working
You can only insert plaintext to alert(), confirm() and prompt() boxes.