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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -