Is it possible to assign Image to label text from Javascript
I tried this but I am not getting the Image
document.getElementById("<%=Label1.ClientID%>").innerHTML = "<img src='Popup(Images)/information.png' /> Hello";
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is doable, but its not recommended.
see it working : http://jsfiddle.net/diode/BgBDT/5/
There is something wrong in your code. I mean id of the label or path of the image is wrong.