title: javascript function not working in IE 7
body: <p>Can anyone please tell me how do I make this script run in IE 7? When I run this , nothing happens. </p>
  
  <pre><code>    &lt;html&gt;
      &lt;head&gt;
      &lt;script language="JavaScript"&gt;
      function moveSelectedOption() {
          // Fetch references to the &lt;select&gt; elements.
          var origin = document.getElementById('origin_select');
          var target = document.getElementById('target_select');
  
  
          // Fetch the selected option and clone it.
          var option = origin.options[origin.selectedIndex];
  
         var copy = option.cloneNode(true);
  
          // Add the clone to the target element.
          target.add(copy, null);
      }
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;select id="origin_select" multiple&gt;
          &lt;option value="A"&gt;A&lt;/option&gt;
          &lt;option value="B"&gt;B&lt;/option&gt;
          &lt;option value="C"&gt;C&lt;/option&gt;
      &lt;/select&gt;
      &lt;select id="target_select" multiple&gt;
  
          &lt;option value="C1"&gt;C1&lt;/option&gt;
      &lt;/select&gt;
      &lt;button onclick="moveSelectedOption()"&gt;Add&lt;/button&gt;
   &lt;!--   &lt;input type="button" onClick="moveSelectedOption()" value="AddMeToo" /&gt;  this does not work either--&gt;
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>