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