Hello
How do I get the alt tag of an image to appear in a textbox?
this is what I'm trying
function addsmile(image_ name) {
var smiley;
smiley = document.image_ name.alt; // <= THIS RULE SHOULD BE CORRECTED!!!!!
doc_content = document.form.b ericht.value + smiley;
document.form.b ericht.value = doc_content;
document.form.b ericht.focus();
}
so when a user clicks a link, it sends the name of the image to the
function, and smiley should be the alt tag of the image!
if the variable image_name = "een"
then the line should be
smiley = document.een.al t;
thank you very much for any help!
How do I get the alt tag of an image to appear in a textbox?
this is what I'm trying
function addsmile(image_ name) {
var smiley;
smiley = document.image_ name.alt; // <= THIS RULE SHOULD BE CORRECTED!!!!!
doc_content = document.form.b ericht.value + smiley;
document.form.b ericht.value = doc_content;
document.form.b ericht.focus();
}
so when a user clicks a link, it sends the name of the image to the
function, and smiley should be the alt tag of the image!
if the variable image_name = "een"
then the line should be
smiley = document.een.al t;
thank you very much for any help!
Comment