html in javascript confirm box? -
is possible insert html code in javascript confirm box?
i tried & not seem work (i try add html link), see 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 might have use library such "jquery-ui's dialog" working
you can insert plaintext alert(), confirm() , prompt() boxes.
Comments
Post a Comment