javascript - Display image as alert -
i know simple question have following code (after user has clicked submit form) displays pop-up img src path, how can change display actual image within pop-up , not path?
echo ' <img src="../mypath/to/the/image.jpg" id="form-submit"> <script type="text/javascript"> alert(document.getelementbyid("form-submit").src); </script> ';
you cannot display image on native js alert dialog box nor can change title, style etc of it.
if looking such options , should go jquery dialog
Comments
Post a Comment