<input type="text" id="textfield" size="100" /><br /> <img name="123456" onclick="document.getElementById('textfield').value += this.name">