T
twopeak
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.bericht.value + smiley;
document.form.bericht.value = doc_content;
document.form.bericht.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.alt;
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.bericht.value + smiley;
document.form.bericht.value = doc_content;
document.form.bericht.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.alt;
thank you very much for any help!