title: how to read and delete a Cookie with javascript?
body: <p>allCookies contents a list of my Browser Cookies.
  I want to delete Cookies with this function delCookie(), but It just delete the first Cookie, and not the others cookies.
  And how could i do to update a cookie???</p>
  
  <pre><code>&lt;input type="button" value="DElete" onclick="delCookie()"&gt;
      &lt;input type="button" value="Update" onclick="modCookie()"&gt;
  
  
  &lt;select multiple id="allCookies" size="5"&gt;
          &lt;!-- Cookies content--&gt;
      &lt;/select&gt;&lt;br&gt;
  
   function delCookie() {
      if (confirm('Are u sure?')) {
          var e = document.getElementById("allCookies");
          var strUser = e.options[e.selectedIndex].value;
          document.cookie = encodeURIComponent(strUser) + "=deleted; expires=" + new Date(0).toUTCString();
      }
  }
  </code></pre>