> I'm not sure if this is the appropriate group or not.
Yes, it is. As client-side DOM scripting is primarily performed
with ECMAScript implementations, that is on-topic here.
> [...] The items add fine if they are added "onclick" but it doesn't
> seem to cooperate when I add the items during the "onmouseup" event.
[quoted text clipped - 8 lines]
> <head>
> <script language="javascript">
Should be at least
<script type="text/javascript" ...>
See http://validator.w3.org/
> function addItem(){
> var fromBox = document.getElementById("Select1");
> if (fromBox.selectedIndex > -1) {
> var fromItem = fromBox.options[fromBox.selectedIndex];
> var objOption = document.createElement("OPTION")
> var toBox = document.getElementById("Select2");
You won't need to call this method if you store the reference to the calling
object (`this') onmousedown the source `select' element in a globally
available property. That would also be less error-prone and easier to maintain.
> toBox.options.add(objOption)
Note that the MSHTML DOM and the W3C DOM implement this method differently.
The canonical, although proprietary, way to do this is:
var objOption = new Option(fromItem.text, fromItem.value);
toBox.options[toBox.options.length] = objOption;
See also http://www.quirksmode.org/js/options.html
> objOption.innerText = fromItem.text
`innerText' is MSHTML-proprietary and completely unnecessary here. Try
objOption.text = fromItem.text;
instead.
HTH
PointedEars