An imposible task?

liunx

Guest
Hi all...<br />
<br />
I'm really new to this HTML stuff so please be gentle with me!<br />
<br />
What I'd like to do is this:<br />
<br />
Using HTML only. Is there a way to convert a list of alpha numeric characters (over 1000 of them) into a clickable list, so that when a character is clicked it is copied into a text box?<br />
<br />
Or am I asking too much?<br />
<br />
Any help or pointers would be greatly appreciated.<br />
<br />
Many thanks in advance for any help offered.<!--content-->Something like this?<br />
<br />
<br />
<script type="text/javascript"><!--<br />
function addToList() {<br />
if (document.getElementById) {<br />
var selectElement = document.getElementById('char_list');<br />
document.getElementById('output').value +=<br />
selectElement.options[selectElement.selectedIndex].value;<br />
}<br />
}<br />
//--></script><br />
<form action="..."><p><br />
<select size="10" id="char_list" onchange="addToList();"><br />
<option value="abc">abc</option><br />
<option value="def">def</option><br />
<option value="ghi">ghi</option><br />
<option value="jkl">jkl</option><br />
<option value="mno">mno</option><br />
</select><br />
<textarea id="output"></textarea><br />
</p></form><!--content-->Hey Andy,<br />
as the post above is trying to imply, I'm afraid you cannot do it with JUST html, unless you do it manually 1 by 1.<br />
You can do it with client-side scripting like JavaScript, or server-side scripting like php!<!--content-->
 
Back
Top